in reply to last in do vs last in while/for
not exactly. if you are do-whileing then you are evaluating loop after you do something , so technically you are not in the loop, that is how you make sure that something is done (in the 'contents' of a loop) even if a condition is not good to go. and because perl complains ('Can't "last" outside a loop block at -e line 1.') it should be obvious that last is dependent on a loop
hope this helps (please anyone correct if i'm wrong)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: last in do vs last in while/for
by ikegami (Patriarch) on Mar 04, 2009 at 19:34 UTC |