While subA detects faults, use subB to correct them.Translating this to Perl is trivial:
orwhile (subA(@array)) { subB(@array); }
if subB needs to know what the list of faults was.while (my @faults = subA(@array)) { subB(\@array, \@faults); }
In reply to Re^2: Recursive loops
by dsheroh
in thread Recursive loops
by reaper9187
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |