![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Slurp a fileby davorg (Chancellor) |
on Jan 08, 2001 at 21:53 UTC ( #50529=note: print w/replies, xml ) | Need Help?? |
Oops. You've just left $/ set to undef for the rest of the program. This can lead to all sorts of nastiness. Better to do something like this:
Which returns $/ to its original value once you leave the bare block. Update: I should point out that my correction was to the original version of this node. It's now been changed to use my suggestion. --<http://www.dave.org.uk>
"Perl makes the fun jobs fun
In Section
Snippets Section
|
|