Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: compare two arrays if both are equal and have same elements irrespective of their position

by LanX (Saint)
on Jun 16, 2021 at 17:33 UTC ( [id://11133925]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found