<> returns a list of lines in list context.
my @content = do { local @ARGV = $file ; <> } ;
In reply to Re: Slurping strings from text file and pushing to array?
by ikegami
in thread Slurping strings from text file and pushing to array?
by Mad_Mac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |