Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: boolean IN(); function in perl likeby adamk (Chaplain) |
on Jan 17, 2005 at 03:50 UTC ( [id://422655]=note: print w/replies, xml ) | Need Help?? |
Or List::MoreUtil's even more correct 'any' function. If you are wondering why first isn't enough, imagine... Of course, this assumes you only need to check once and once only. If you want to check many times, build the hash index and do it that way. Edit by castaway - swapped lotsa br tags for code tags
In Section
Seekers of Perl Wisdom
|
|