| Data::Dumper::HTML - Perl extension to dump data in HTML safe format with syntax highlighting |
Data::Dumper::HTML - Perl extension to dump data in HTML safe format with syntax highlighting
use Data::Dumper::HTML qw(dumper_html);
print CGI::header();
print qq{<div style="font-family: monospace">\n};
print dumper_html(@whatever);
print "\n<br /><br />\n";
# or with the OO (but Data::Dumper objects act strange so I usually recommend the function route)
my $dd = Data::Dumper->new(\@whatever);
print $dd->DumpHTML();
print "\n</div>\n";
Adds DumpHTML() and dump_html() method to Data::Dumper objects
And has exportable DumperHTML() and dumper_html() functions
There are ``all lowercase/underscore'' versions since that is the style I prefer. I also included the ``smooshed together mixed case'' to correspond to the Data::Dumper manpage's Dumper() function and Dump() method.
It will be Perl syntax highlighted if possible, see the Text::inHTML manpage for more details.
the Data::Dumper manpage, the Text::InHTML manpage
Daniel Muey, http://drmuey.com/cpan_contact.pl
Copyright (C) 2006 by Daniel Muey
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
| Data::Dumper::HTML - Perl extension to dump data in HTML safe format with syntax highlighting |