Re: consecutive lines in a file

2006-10-13 Thread Mumia W.
On 10/13/2006 07:57 AM, Luba Pardo wrote: Dear sir/madam: I am trying to write a script to process to consecutive lines at a time and compare elements of between two consecutive lines. I don't understand this sentence. I tried something like: $i=0; while (){ chomp; @a1_s= split/\/, $a1_s[1];

RE: consecutive lines in a file

2006-10-13 Thread Krishnakumar K P
-Original Message- From: Luba Pardo [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 6:27 PM To: beginners@perl.org Subject: consecutive lines in a file Dear sir/madam: I am trying to write a script to process to consecutive lines at a time and compare elements of between two c

Re: consecutive lines in a file

2006-10-13 Thread Tom Phoenix
On 10/13/06, Luba Pardo <[EMAIL PROTECTED]> wrote: I am trying to write a script to process to consecutive lines at a time and compare elements of between two consecutive lines. It might be easiest to read the file into an array. Of course, that's only practical if it's not a large file. @a1