in reply to compare two arrays if both are equal and have same elements irrespective of their position

EDIT: I only noticed after reading the code that the question is especially about Array::Compare , so my answer may only be tangential.


do you know Test::More ? especially the function is_deeply ?

is_deeply($got_complex_structure, $expected_complex_structure, $test_name);

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: compare two arrays if both are equal and have same elements irrespective of their position
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: compare two arrays if both are equal and have same elements irrespective of their position
by noviceuser (Acolyte) on Jun 16, 2021 at 17:38 UTC

    No, i have just started out perl sometimes back. Any regular way will work