in reply to Re: Different behaviors between "while" and "map"
in thread Different behaviors between "while" and "map"
is special. it does not act like any other iteration construct, not even like any other while() construct. It explicitly iterates over each record ("line") one by one instead of converting the whole file to a list first.while (<SOME_FILE_HANDLE>)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Different behaviors between "while" and "map"
by betterworld (Curate) on Dec 06, 2008 at 01:42 UTC | |
by JavaFan (Canon) on Dec 06, 2008 at 02:18 UTC | |
by ikegami (Patriarch) on Dec 06, 2008 at 06:09 UTC |