Perl: the Markov chain saw | |
PerlMonks |
Foreach & file ioby Xxaxx (Monk) |
on Jun 05, 2001 at 13:53 UTC ( [id://85762]=perlquestion: print w/replies, xml ) | Need Help?? |
Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
With your help I'd like to double check my understanding of
how foreac works with file io.
As far as I know the above snippet will read a single line at a time during processing. I'm guess I'm just checking to make sure it doesn't try reading the whole file into a temporary array and then feed the array elements to the foreach. Is that correct? Claude
Back to
Seekers of Perl Wisdom
|
|