1 package WebPAC::Output;
10 WebPAC::Output - The great new WebPAC::Output!
18 our $VERSION = '0.01';
22 Common routines for output formats
28 my $hash = $self->ds_to_hash( $ds, 'display'
29 disable_key_mungle => 1,
37 my $ds = shift || confess "need ds";
38 my $type = shift || confess "need type";
44 foreach my $t ( keys %$ds ) {
46 if ( ! $opt->{disable_key_mungle} ) {
51 # FIXME get rid of non hash values in data_structure for consistency?
52 next unless ref($ds->{$t}) eq 'HASH';
54 if ( defined( $ds->{$t}->{$type} ) ) {
55 $hash->{$name} = $ds->{$t}->{$type};
65 Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>
67 =head1 COPYRIGHT & LICENSE
69 Copyright 2005-2007 Dobrica Pavlinusic, All Rights Reserved.
71 This program is free software; you can redistribute it and/or modify it
72 under the same terms as Perl itself.
76 1; # End of WebPAC::Output