Welcome to the Monastery | |
PerlMonks |
HOP file iteratorby ady (Deacon) |
on Mar 26, 2006 at 16:19 UTC ( [id://539291]=perlquestion: print w/replies, xml ) | Need Help?? |
ady has asked for the wisdom of the Perl Monks concerning the following question:
Brother monks! I'm stuck in a simple code snippet from HOP (4.3.3), can't quite understand why this spits out *all* lines from the file (<DATA>) and not just the first 2 lines. Seems the first NEXTVAL($it) slurps the *whole* file instead of just reading one line up to \n, but why is that so? Any pointers much appreciated! Best Regards, Allan Dystrup
Back to
Seekers of Perl Wisdom
|
|