|
|
| more useful options | |
| PerlMonks |
Re: Howto convert lines in stringified text into element of an arrayby ikegami (Patriarch) |
| on Sep 04, 2007 at 03:33 UTC ( [id://636822]=note: print w/replies, xml ) | Need Help?? |
|
Assuming you want the same result as chomp( my @array = <FILE> );,
or
or
or (This one allows you to easily use PerlIO layers)
If you want a reference to that array, use \:
Update: Added variants.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||