in reply to Re: How do I compare two arrays?
in thread How do I compare two arrays?
use FreezeThaw qw(cmpStr);
@a =(1,2,3,4);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";
|
|---|