in reply to Re: next and last within subs
in thread next and last within subs
foreach (@array) { if ($something) { # do stuff if ($something1) { # time to move to next iteration of loop before_next_stuff(); } } if ($somethingelse) { # do some other stuff before_next_stuff(); } # more stuff in loop before_next_stuff(); } sub before_next_stuff { # lots o stuff if ($x > $stop) { last; } elsif ($y ne $text) { foobar(); } else { next; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: next and last within subs
by oakb (Scribe) on Jul 11, 2014 at 21:36 UTC | |
|
Re^3: next and last within subs
by Anonymous Monk on Jul 11, 2014 at 20:25 UTC |