Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Testing an arra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1458 of 1490
Post > Topic >>

Testing an array for a match

by lhernsen1015@[EMAIL PROTECTED] (Lou Hernsen) Apr 9, 2008 at 01:07 PM

Hallo

I have an array
@[EMAIL PROTECTED]
 I want to match anywhere in it for
/:1:2:3:/
can I
if (@[EMAIL PROTECTED]
 =~ /:1:2:3:/){}
or do i have to change (@[EMAIL PROTECTED]
 to $Treasures and then
$Treasures = @[EMAIL PROTECTED]
 ;
if ($Treasures =~ /:1:2:3:/){}

Just thought I'd ask first, I have to take mother in law to Dr. so I don't
have time to test right now...
I'll check email in a few hours...
thanks
Lou
 




 4 Posts in Topic:
Testing an array for a match
lhernsen1015@[EMAIL PROTE  2008-04-09 13:07:17 
Re: Testing an array for a match
Jim Gibson <jimsgibson  2008-04-09 11:09:14 
Re: Testing an array for a match
Jim Gibson <jimsgibson  2008-04-09 11:34:55 
Re: Testing an array for a match
krahnj@[EMAIL PROTECTED]   2008-04-10 00:04:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 3:31:40 CDT 2008.