Hello everyone,

I have a pretty simple problem

example : 

@a=qw( 1 2 3 4 5 6 7 );
$b=5;

now i just want to check if the value of $b i.e 5
exists in the array @a or not

Q 1) is there any way other than looping through the
array?

Q2 ) is there any predefined function to check the
existance of the element in the array..

thanks in advance

jabir ahmed

 

I do the diffcult immediately,but the impossible take's a little longer!!!

Cresent canaopy apartments 
#19 Davis Road, 
Thomas town,
Bangalore -84 
Phone (mobile) : +91-98867 01148 
E-Mail: [EMAIL PROTECTED],[EMAIL PROTECTED]


                
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

-- 
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