in reply to how can i read only the last line of a files
.@last=lastlines(\@a,\@b,\@c); print "@last\n"; sub lastlines { my @retlist=(); foreach my $aref(@_) { push @retlist,pop @$aref; } return @retlist; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how can i read only the last line of a files
by davidrw (Prior) on Aug 03, 2006 at 11:57 UTC |