Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Flag variables

by Bilbo (Pilgrim)
on Mar 03, 2003 at 10:54 UTC ( #239995=note: print w/ replies, xml ) Need Help??


in reply to Flag variables

I don't know why this would be wrong, but I can see an alternative way of doing this:

foreach my $var (@somearray){ if($var eq "foo"){ &someaction; last; } }

Update: sorry for the duplicate reply - zby beat me to it


Comment on Re: Flag variables
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-22 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls