Working with text files.Please help!

2002-11-21 Thread Vitali Pokrovski
le names is from 3 position  for characters,in this case is "1001" or "1002" or "1003"..   I'm not sure what I'm trying to do here..   #!perl -w $count = 0;  while () {  if  (substr($_,0,2) eq "10")  {   #If left 2    ++$count;    $lines =

Problem with installing

2002-06-28 Thread Vitali Breida
-- I have: 1)Solaris SunOS 5.8 SPARC 2)gcc-2.95 3)perl 5.005.03 Any suggestions? Best regards, Vitali Breida

Lines count...how to..

2002-03-04 Thread Vitali
Dear friends, can anybody correct me...I have a text file.Data look like this: 10 20 20 20 20 10 20 20 10 20 20 20 and so one - while () { if (substr($_,0,2) eq "10") { #If left 2 characters is 10,then . ++$count; $lines = 0; op

How to print firstly Raport page ,and after data from input file

2002-02-28 Thread Vitali
Dear friends! Please consult me! How I must change the code ,so that "Raport page" prints on the begining of file,not in the end? Code reads the lines,count $env and $page and print those to the report page... Thank you, VItali Pokrovski -- Here is

Re: Sorting a hash table - Advanced;)

2002-02-28 Thread Vitali
Dear friends! Please consult me! How I must change the code ,so that "Raport page" prints on the begining of file,not in the end? Code reads the lines,count $env and $page and print those to the report page... Thank you, VItali Pokrovski -- Here is