Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: compare two arrays

by ccn (Vicar)
on Dec 15, 2008 at 05:14 UTC ( [id://730342]=note: print w/replies, xml ) Need Help??


in reply to compare two arrays

my @c = map { $a[$_] == $b[$_] ? 1 : 0 } 0 .. $#a;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found