That one is a weird one to get your head around... I never
think of it. It is very cool, though. Of course, you could always do...
while (<HANDLE>) {
last unless 1..21;
}
... rest of processing here ...
to prevent that check running for the following lines,
but that's just downright ANAL :)
- Ant | [reply] [d/l] |
| [reply] |
No... the while goes through 21 one times, then breaks out... (tho might lose line 22... 1..20 might be needed in this case...
but once it exits the loop you either start a new loop or read
the reast into an array or whatever, since your placeholder in
the file is now at line 22. You see? But that way it isnt perfoming the line check after the 21st line..
not a big efficiency savings... but a bit.
- Ant
| [reply] |
Any reason you wouldn't use:
<HANDLE> for 1..21;
...
MeowChow
s aamecha.s a..a\u$&owag.print | [reply] [d/l] |
| [reply] [d/l] [select] |