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