laziness, impatience, and hubris | |
PerlMonks |
Re: $/ questionby davidrw (Prior) |
on Jan 13, 2008 at 02:56 UTC ( [id://662140]=note: print w/replies, xml ) | Need Help?? |
If you're undef'ing it, then you're in slurp mode, and there's no point in looping, because there's only going to be one line in the file ...
Also be sure to read through all off the perlvar section on $/ -- i think you're looking for local $/ = ""; This may be of interest as well: Perl Idioms Explained - my $string = do { local $/; <FILEHANDLE> };
In Section
Seekers of Perl Wisdom
|
|