Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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"; In reply to Re^2: How do I compare two arrays?
by bimleshsharma
|
|