good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
(elbie 2): Last two rows or a csv file.by elbie (Curate) |
on Aug 18, 2001 at 02:09 UTC ( [id://105810]=note: print w/replies, xml ) | Need Help?? |
If you don't need to store the contents of the file, try this:
If you do need to store the whole file, then the last two lines are stored in $lines( $#lines - 1 ) and $lines( $#lines ) of your example before you popped them off the stack. elbieelbieelbie
In Section
Seekers of Perl Wisdom
|
|