CGI::Carp::DebugScreen::Dumper - Dump a variable as an HTML table
use CGI::Carp::DebugScreen::Dumper; # if you want to poke into further CGI::Carp::DebugScreen::Dumper->ignore_overload(1); my $table = CGI::Carp::DebugScreen::Dumper->dump($thingy); print "Content-type:text/html\n\n", $table;
This module dumps the contents of a variable (supposedly, a reference) as an HTML table. If the variable has something unfit for an HTML output, it dumps alternative texts such as '*BINARY*', '*CODE*', or '*GLOB*'. It also escapes every key and value, so all you have to do is print some headers (likely to have been printed) and the dumped table. Dead easy.
Currently this module has only two package methods.
takes a variable (supposedly, a reference) and returns an HTML table.
If set to true, dump() will ignore overloading (to stringify, maybe) and poke into the object further.
I'm afraid that this module should have another (and shorter) name and stand alone. The dumps() method should take array, hash, or multiple variables.
CGI::Carp::DebugScreen
Kenichi Ishigaki, <ishigaki@cpan.org>
Copyright (C) 2006 by Kenichi Ishigaki
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::Carp::DebugScreen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Carp::DebugScreen
CPAN shell
perl -MCPAN -e shell install CGI::Carp::DebugScreen
For more information on module installation, please visit the detailed CPAN module installation guide.