Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Compare two arrays

by Anonymous Monk
on Feb 01, 2012 at 08:27 UTC ( [id://951149]=note: print w/replies, xml ) Need Help??


in reply to Compare two arrays

I think i found a way to do it
my $count=0; for ( my $i=0; $i <($#a+1);$i++) { if ( $a[$i] != $b[$i] ) { $count++; } } print $count;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found