in reply to Re: A few random questions from Learning Perl 3
in thread A few random questions from Learning Perl 3
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
|
---|