http://www.perlmonks.org?node_id=646926

jdporter has asked for the wisdom of the Perl Monks concerning the following question: (data structures)

How do I compare/match deeply nested (complex) data structures?

Originally posted as a Categorized Question.

  • Comment on How do I compare/match deeply nested (complex) data structures?

Replies are listed 'Best First'.
Re: How do I compare/match deeply nested (complex) data structures?
by jdporter (Paladin) on Oct 24, 2007 at 16:29 UTC
    Try: Other modules which may prove useful:
    • Data::Diver - Simple, ad-hoc access to elements of deeply nested structures
    • Data::DRef - Delimited-key access to complex data structures
    • Data::Walker - A tool for navigating through Perl data structures
    (Thanks to princepawn for finding these.)
Re: How do I compare/match deeply nested (complex) data structures?
by SBECK (Chaplain) on Apr 02, 2010 at 12:16 UTC
Re: How do I compare/match deeply nested (complex) data structures?
by Discipulus (Canon) on Dec 05, 2014 at 08:43 UTC
    You can use the function is_deeply from the core module Test::More.