Re: How to get teh line before a last from file

2007-11-06 Thread Paul Lalli
On Nov 6, 5:28 am, [EMAIL PROTECTED] (Sivasakthi) wrote: > How to get the line before a last line from file?? Here's a few off the top of my head. I'm sure there's more. #1 open my $fh, '<', $file or die $!; my $before_last = (<$fh>)[-2]; #2 open my $fh, '<', $file or die $!; my ($last, $before

How to get teh line before a last from file

2007-11-06 Thread sivasakthi
Hi All, How to get the line before a last line from file?? Thanks, Siva