Testing an array for a match
[email protected] ("Lou Hernsen")
| Newsgroups | perl.beginners.cgi,perl.beginners |
|---|---|
| Message-ID | <000801c89a64$46ecf2c0$6401a8c0@lousmaster> |
Hallo
I have an array
@Treasures
and I want to match anywhere in it for
/:1:2:3:/
can I
if (@Treasures =~ /:1:2:3:/){}
or do i have to change (@Treasures to $Treasures and then
$Treasures = @Treasures ;
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