Welcome to the Monastery | |
PerlMonks |
Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };by BUU (Prior) |
on Aug 29, 2003 at 18:45 UTC ( [id://287794]=note: print w/replies, xml ) | Need Help?? |
What about the 'idiom'
my $data = do{local(@ARGV,$/)='file.txt';<>}
In Section
Meditations
|
|