Syntactic Confectionery Delight | |
PerlMonks |
Re: why can't I just cat the file???by johngg (Canon) |
on Feb 07, 2008 at 10:47 UTC ( [id://666770]=note: print w/replies, xml ) | Need Help?? |
print without arguments defaults to operating on $_ and you could also chomp all of your lines in one go. If you don't mind destroying the array you could do this (using defined to cope with blank lines)
I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|