Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Recursive loops

by dsheroh (Prior)
on Dec 12, 2012 at 10:13 UTC ( #1008477=note: print w/replies, xml ) Need Help??


in reply to Re: Recursive loops
in thread Recursive loops

In that case, you don't even need a queue. To restate your description of the process:
While subA detects faults, use subB to correct them.
Translating this to Perl is trivial:
while (subA(@array)) { subB(@array); }
or
while (my @faults = subA(@array)) { subB(\@array, \@faults); }
if subB needs to know what the list of faults was.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008477]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-12-05 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (91 votes). Check out past polls.