Dr.Ruud wrote:
Jenda Krynicky wrote:

my $data = do {local $/; <DATA>};

is better written as

  my $data; { local $/; $data = <DATA> };

For smallish files it doesn't matter much.

Or perhaps:

read DATA, my $data, -s DATA;



John
--
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to