RE: how to check variable in list

2002-09-26 Thread Sudarshan Raghavan
lex Cheung Tin Ka [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 26, 2002 5:00 PM > > To: [EMAIL PROTECTED] > > Subject: how to check variable in list > > > > > > Dear All, > > I would like to know how to check whether a variable > > e

RE: how to check variable in list

2002-09-25 Thread Toby Stuart
$a = 1; @b = (1,2,3,4); $i = grep(/$a/,@b); print "in array" if $i > 0; > -Original Message- > From: Alex Cheung Tin Ka [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 5:00 PM > To: [EMAIL PROTECTED] > Subject: how to check variable in li

how to check variable in list

2002-09-25 Thread Alex Cheung Tin Ka
Dear All, I would like to know how to check whether a variable exists in an array here is my code $a = 1; @b = (1,2,3,4); Regards. Alex