Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: searching an array

by mrborisguy (Hermit)
on Jan 03, 2006 at 16:35 UTC ( [id://520659]=note: print w/replies, xml ) Need Help??


in reply to searching an array

You also could use one of (Quantum::Superpositions, Perl6::Junction, List::Util::Superpositions). Then it would look something like

die "blah bla\n" if $name ne any( @array );

    -Bryan

Replies are listed 'Best First'.
Re^2: searching an array
by phaylon (Curate) on Jan 03, 2006 at 16:55 UTC
    Or, to match the OPs question w/ regexes, if I'm reading Perl6::Junction correctly:

    die "with dignity!" unless any( @rxes ) == $value;

    Ordinary morality is for ordinary people. -- Aleister Crowley

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found