Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: How do I compare two arrays?

by bimleshsharma (Beadle)
on Jun 30, 2011 at 06:33 UTC ( #912106=note: print w/ replies, xml ) Need Help??


in reply to Re: How do I compare two arrays?
in thread How do I compare two arrays?

The best way what i find is to compare

use FreezeThaw qw(cmpStr);

@a =(1,2,3,4);
@b = ( "this", "that", "more", "stuff" );
@c = (1,2,3,5);

printf "a and b contain %s arrays\n",cmpStr(\@a, \@b) == 0 ? "the same" : "different";

printf "a and c contain %s arrays\n",cmpStr(\@a, \@c) == 0 ? "the same" : "different";


Comment on Re^2: How do I compare two arrays?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2014-07-23 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (140 votes), past polls