Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Compare two arrays

by ELISHEVA (Prior)
on Apr 02, 2009 at 10:47 UTC ( #754911=note: print w/replies, xml ) Need Help??


in reply to Compare two arrays

You are matching "this2" to "h6this23" because your regex is missing a final dollar sign. Without the final $, matches in the middle of the string will print out. With it, only matches at the end of the string will print out. See regextut for more information on the $.

So this should work: /$array1[$j]$/

Best,beth

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-08-15 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?