in reply to Cheap idioms
If I'm ever in the position where I need to slurp a file I'll go with IO::File's handy getcontents() method
HTH
I'm not sure how that benchmarks, but I'm of the opinion that it looks much more elegant ;)my $contents = IO::File->new($filename)->getcontents();
HTH
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Cheap idioms
by Aristotle (Chancellor) on Oct 14, 2002 at 11:04 UTC |
In Section
Meditations