Oct 11, 2002 #1 rubis Programmer Jun 21, 2001 54 GB Hi all, Is there any function/a method to check if a particular value is in an array apart from using "foreach" to check it one by one?? Thanks,
Hi all, Is there any function/a method to check if a particular value is in an array apart from using "foreach" to check it one by one?? Thanks,
Oct 11, 2002 1 #2 Coderifous Programmer Dec 13, 2001 782 US print "FOUND IT!" if( grep(/pattern/, @list) ) The grep function is one way to do it. --jim Upvote 0 Downvote
print "FOUND IT!" if( grep(/pattern/, @list) ) The grep function is one way to do it. --jim
Oct 11, 2002 #3 Coderifous Programmer Dec 13, 2001 782 US Sorry about the colors: in a rush. --jim Upvote 0 Downvote