Data::Skeleton - Show the keys of a deep data structure
use Data::Skeleton; my $ds = Data::Skeleton->new; my $deep_data_structure = { id => 'hablando', last_modified => 1, sections => [ { content => 'h1. Ice Cream', class => 'textile' }, { content => '# Chocolate', class => 'markdown' }, ], }; use Data::Dumper::Concise; print Dumper $ds->deflesh($deep_data_structure);
# results in:
{ id => "", last_modified => "", sections => [ { class => "", content => "" }, { class => "", content => "" } ] }
Sometimes you just want to see the "schema" of a data structure. This modules shows only the keys with blanks for the values.
Turn on/off debugging
Signature: (HashRef|ArrayRef) Returns: The data structure with values blanked
Mateu Hunter hunter@missoula.org
hunter@missoula.org
Copyright 2011-2012, Mateu Hunter
You may distribute this code under the same terms as Perl itself.
To install Data::Skeleton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Skeleton
CPAN shell
perl -MCPAN -e shell install Data::Skeleton
For more information on module installation, please visit the detailed CPAN module installation guide.