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' );
35 my ( $ds, $type ) = @_;
37 confess "need ds" unless $ds;
38 confess "need type" unless $type;
42 foreach my $t ( keys %$ds ) {
46 # FIXME get rid of non hash values in data_structure for consistency?
47 next unless ref($ds->{$t}) eq 'HASH';
49 if ( defined( $ds->{$t}->{$type} ) ) {
50 $hash->{$name} = $ds->{$t}->{$type};
60 Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>
62 =head1 COPYRIGHT & LICENSE
64 Copyright 2005-2007 Dobrica Pavlinusic, All Rights Reserved.
66 This program is free software; you can redistribute it and/or modify it
67 under the same terms as Perl itself.
71 1; # End of WebPAC::Output