in reply to Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
Isn't it simpler by doing...
This is also true for the external 'sort', which is much faster than perl's own sort.
Roger.
-f "file.txt" or die "File not found!\n"; $string=`cat file.txt`;
This is also true for the external 'sort', which is much faster than perl's own sort.
Roger.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by esh (Pilgrim) on Sep 05, 2003 at 08:11 UTC | |
Re^2: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
by adrianh (Chancellor) on Sep 05, 2003 at 12:58 UTC |
In Section
Meditations