# use strict, etc... OUTER: while ( 1 ) { INNER_A: while ( my $dir_A = readdir( $dh ) ) { # something4 INNER_B: while ( my $dir_B = readdir( $dh ) ) { INNER_C: while ( my $dir_C = readdir( $dh ) ) { # something6 next INNER_C if ...there are still files in the folder that have +not been checked...else return to OUTER; } next INNER_B if ...there are still files in the folder that have n +ot been checked...else return to OUTER; } next INNER_A if ...there are still files in the folder that ha +ve not been checked...; } sleep 2; next OUTER if the network is not too busy; # I have no idea how o +r if I should do this sleep 4; }
In reply to Re^4: next unless - and then 'until'
by Win
in thread next unless - and then 'until'
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |