Re: finding an lement in an array

2005-10-08 Thread John W. Krahn
Jabir Ahmed wrote: > Hello everyone, Hello, > 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? To do it wit

Re: finding an lement in an array

2005-10-08 Thread John W. Krahn
Jabir Ahmed wrote: > > --- [EMAIL PROTECTED] wrote: >> >>I am attempting to develop a script that will parse >>a directory listing and return only directory names >>that match a given expression. >> >>It would make sense to me to use File::Find to do >>this but based on the dir structure I am pars