Also be sure to read through all off the perlvar section on $/ -- i think you're looking for local $/ = "";sub slurpie { local $/ ; return <DATA>; # contains whole thing } sub DATA_w_line_numbers { while (<DATA>) { print "$.) $_"; } }
In reply to Re: $/ question
by davidrw
in thread $/ question
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |