2010/8/13 Kryten <kryte...@googlemail.com>: > Hi, > > Complete newbie. > > Is there any way to use "next" from within a foreach loop? >
Sure. $ perl -le ' > for (1..10) { > next if $_ == 5; > print; > } ' 1 2 3 4 6 7 8 9 10 -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/