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

Re: in function?

by plaid (Chaplain)
on Jul 08, 2000 at 00:08 UTC ( #21566=note: print w/replies, xml ) Need Help??


in reply to in function?

While ferrency's answer is a better way to go about it overall, the most direct answer to your question would be
if(grep {$_ eq 'blah'} @myarray) { # stuff }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2020-05-25 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (143 votes). Check out past polls.

    Notices?