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

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 wandering the Monastery: (6)
As of 2016-06-30 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.