Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Comparing unordered hierarchical arrays

by ant9000 (Monk)
on Apr 06, 2004 at 06:51 UTC ( [id://342848]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparing unordered hierarchical arrays
in thread Comparing unordered hierarchical arrays

Your solution seems flawed to me: consider
my $ha = [ [1,2], [5,5,5], [1,2], [3,4] ]; my $hb = [ [4,3], [1,2], [2,1,5], [5,5] ];
These are clearly different, but your code still outputs "same" since it is discarding the entire original structure (and not only the order of elements).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found