Config-Hierarchical
view release on metacpan or search on metacpan
lib/Config/Hierarchical.pm view on Meta::CPAN
}
}
#-------------------------------------------------------------------------------
sub GetDump
{
=head2 GetDump()
$dump = $config->GetDump(@data_treedumper_options) ;
$dump = $config->GetDump(@data_treedumper_options) ;
I<Arguments>
=over 2
=item * @data_treedumper_options - A list of options forwarded to L<Data::TreeDumper::DumpTree>.
=back
I<Returns>
A dump, of the Config::Hierarchical object, generated by L<Data::TreeDumper::DumpTree>.
See L<Data::TreeDumper>.
=cut
my ($self, @data_treedumper_options) = @_ ;
my ($package, $file_name, $line) = caller() ;
use Data::TreeDumper ;
my $sort_categories =
sub
{
# DTD dumps hash with sorted keys
# we display the categories in hierarchical order
my ($s, $level, $path, $keys) = @_ ;
if($level == 1 && $path eq q<{'CATEGORIES'}>)
{
return('HASH', undef, @{$self->{CATEGORY_NAMES}}) ;
}
else
{
return(Data::TreeDumper::DefaultNodesToDisplay($s)) ;
}
} ;
return(DumpTree($self, $self->{NAME}, FILTER => $sort_categories, @data_treedumper_options)) ;
}
#-------------------------------------------------------------------------------
1 ;
=head1 BUGS AND LIMITATIONS
None so far.
=head1 AUTHOR
Khemir Nadim ibn Hamouda
CPAN ID: NKH
mailto:nadim@khemir.net
=head1 LICENSE AND COPYRIGHT
Copyright 2006-2007 Khemir Nadim. All rights reserved.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Config::Hierarchical
You can also look for information at:
=over 4
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Config-Hierarchical>
=item * RT: CPAN's request tracker
Please report any bugs or feature requests to L <bug-config-hierarchical@rt.cpan.org>.
We will be notified, and then you'll automatically be notified of progress on
your bug as we make changes.
=item * Search CPAN
L<http://search.cpan.org/dist/Config-Hierarchical>
=back
=head1 SEE ALSO
L<Config::Hierarchical::Tie::ReadOnly>
L<Config::Hierarchical::Delta>
=cut
( run in 1.321 second using v1.01-cache-2.11-cpan-39bf76dae61 )