in reply to Interesting problem on perl data structure
Oh, wait, this won't help at all. I missed the word similar. Nevermind.use Data::Dumper; $Data::Dumper::Sortkeys = 1; $Data::Dumper::Indent = 0; if( Dumper($struct1) eq Dumper($struct2) ) { warn "same!" } else { warn "not same. :(" }
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interesting problem on perl data structure
by ctilmes (Vicar) on Oct 12, 2009 at 16:53 UTC |