Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to compare Array values??

by davorg (Chancellor)
on Jul 13, 2009 at 15:54 UTC ( #779641=note: print w/replies, xml ) Need Help??


in reply to How to compare Array values??

If you escape the special characters then you'll be matching against the literal string '$array[0]' instead of the contents of $array[0].

if ($Array1[0] =~ /$Array2[0]/) { print "PASS"; }
--

See the Copyright notice on my home node.

Perl training courses

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://779641]
help
Chatterbox?
[Discipulus]: ah fine! released my first Dancer website, and today it's a special day
[Discipulus]: my son finished 18 today

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-01-18 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (214 votes). Check out past polls.

    Notices?