On Wed, 17 Nov 2004 11:23:24 +0100, Mauro <[EMAIL PROTECTED]> wrote:

Hi all,
I have to check if $mystring is an elemen of @myarray or not.
Which is the quickest way to do this?


foreach (@array) { if ($mystring) {

             print "Exist\n";
                }
      }

Thank You


Mauro



-- Regards, Edward WIJAYA SINGAPORE

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to