Just as a sidenote, this
could also be written more concisely like this:my $whole_file; { local($/) = undef; $whole_file = <F>; # <> operator reads in all of the data from fil +ehandle F }
my $whole_file = do { local $/; <F> };
-- Hofmator
In reply to Re: Re: A few random questions from Learning Perl 3
by Hofmator
in thread A few random questions from Learning Perl 3
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |