Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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


Comment on Re: How to compare Array values??
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://779641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2015-07-28 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls