If you just want to get a function to do that,I think the 'grep' should be fine.But it is essentially a foreach loop. But you can get things more convenient by translating the array to hash and use the 'exist' function.
-----Original Message----- >From: Adriano Allora <[EMAIL PROTECTED]> >Sent: Feb 8, 2006 3:52 AM >To: beginners@perl.org >Subject: find a value > >Hi all, > >is there a way to find a value in an array without a foreach loop? > >thank you all a lot, > >alladr > >|^|_|^|_|^| |^|_|^|_|^| > | | | | > | | | | > | |*\_/*\_/*\_/*\_/*\_/* | | > | | > | | > | | > | http://www.e-allora.net | > | | > | | >************************************** > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] ><http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>