rosenrosen has asked for the wisdom of the Perl Monks concerning the following question:
foreach $item (@array) { if (some_test($item)) { print "Failure: $item\n"; #inset tricky back step thing here sleep 10; } else { print "Success: $item\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Back step in foreach loop
by Limbic~Region (Chancellor) on Nov 10, 2008 at 23:23 UTC | |
|
Re: Back step in foreach loop
by duckyd (Hermit) on Nov 11, 2008 at 01:43 UTC | |
by ikegami (Patriarch) on Nov 11, 2008 at 02:00 UTC | |
|
Re: Back step in foreach loop
by f00li5h (Chaplain) on Nov 10, 2008 at 23:30 UTC | |
by JadeNB (Chaplain) on Nov 10, 2008 at 23:35 UTC | |
by blazar (Canon) on Nov 11, 2008 at 11:42 UTC | |
|
Re: Back step in foreach loop
by rosenrosen (Initiate) on Nov 11, 2008 at 17:32 UTC |