Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: comparing array elements

by andye (Curate)
on Mar 30, 2007 at 15:32 UTC ( [id://607503]=note: print w/replies, xml ) Need Help??


in reply to comparing array elements

One simple way: use a hash instead.
my %running = ( foo => 1, bar => 1, baz => 1 ); if ($running{'foo'} == 1) { # do stuff } # foo has finished: delete $running('foo'}

HTH!

andye

Log In?
Username:
Password:

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

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

    No recent polls found