Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: self-feeding infinite loop

by ikegami (Patriarch)
on Aug 18, 2007 at 18:46 UTC ( [id://633515]=note: print w/replies, xml ) Need Help??


in reply to self-feeding infinite loop

You're using an undocumented side-effect of an optimization in some foreach loops. (See an earlier post of mine on different kinds of foreach loops.) There's no guarantee it will continue working in future versions of Perl. Why don't you use a processing queue instead?
my @todo = ( ... ); while (@todo) { my $item = shift @todo; ... push @todo, ... ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://633515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-23 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found