stephen kelly wrote:
hi there
what syntax do i use to jump out of a conditional loop
for c/java it break; return; what is it in perl syntax>
perldoc -f last
last LABEL
lastThe "last" command is like the "break" statement
in C (as used in loops); it immediately exits the
On Thursday 04 March 2004 02:02 am, stephen kelly wrote:
> hi there
> what syntax do i use to jump out of a conditional loop
> for c/java it break; return; what is it in perl syntax>
>
> thx
> steve
while( ... ) { # or for, foreach, etc.
...
last; # == break
...
next; # ==