"be consistent" | |
PerlMonks |
Re: How else can I read from a file without using a while loop, testing for the EOF?by S@nto (Initiate) |
on Apr 23, 2006 at 17:53 UTC ( [id://545140]=note: print w/replies, xml ) | Need Help?? |
Much less dangerous than undef-ing $/ globably (and maybe forgetting to set it back) local-ize it to a block that just does your file reading: Or you can use $RS if you can't (or don't want to) remember $/.
In Section
Seekers of Perl Wisdom
|
|