in reply to Re^2: compare two arrays if both are equal and have same elements irrespective of their position
in thread compare two arrays if both are equal and have same elements irrespective of their position

You can write a simple helper sub yourself (or maybe write many of them and upload them to CPAN):
use Test2::V0; sub mybag { my @ar = @_; bag { item $_ for @ar ; end } } is(\@array1, mybag(@array2));
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^3: compare two arrays if both are equal and have same elements irrespective of their position
  • Select or Download Code