Ovid schreef:
> my $text = do { local $/; <$fh> };
There is a problem with this idiom: it uses about twice the memory of
this variant:
my $text ; { local $/ ; $text = <$fh> }
So if your files can be big (related to the amount of memory available),
use the latter.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
