in reply to Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
What about the 'idiom'
my $data = do{local(@ARGV,$/)='file.txt';<>}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by antirice (Priest) on Aug 30, 2003 at 13:07 UTC |
In Section
Meditations