http://qs1969.pair.com?node_id=1217204


in reply to Any downsides to this slurp idiom?

If the file you're slurping has any size, you're better to do:

my $s; do{ local( @ARGV, $/)='big.file'; $s = <> };
than
my $s = do{ local( @ARGV, $/)='big.file'; <> };

As the latter makes two copies of the file. One in a temporary, and then a copy in $s.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit