If your arrays are not big, this is actually not a bad solution, and it is handy, but don't use it when the arrays are big :-)(I assume that you care the sequence of elements)use Data::Dumper; ... (Dumper(@a) eq Dumper(@b))?print "same":print "different";
In reply to Re: Comparing arrays
by pg
in thread Comparing arrays
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |