Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: searching an array

by si_lence (Deacon)
on Jan 03, 2006 at 13:41 UTC ( [id://520591] : note . print w/replies, xml ) Need Help??


in reply to searching an array

Something like
die "bla bla \n" unless grep {$name eq $_} @array;
?