Gunnar Hjalmarsson schreef:

>      my $content = do { local $/; <$file> };


That idiom uses an extra buffer, as big as the file. 

       my $content; { local $/; $content = <file> }

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to