Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
As far as I know the above snippet will read a single line at a time during processing.foreach my $line (<$INFILE>) { ## do stuff }
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Foreach & file io
by jeroenes (Priest) on Jun 05, 2001 at 14:00 UTC | |
by Xxaxx (Monk) on Jun 05, 2001 at 14:22 UTC | |
|
(tye)Re: Foreach & file io
by tye (Sage) on Jun 05, 2001 at 19:10 UTC | |
by Xxaxx (Monk) on Jun 05, 2001 at 22:04 UTC |