Domizio Demichelis > CGI-Builder-1.36 > CGI::Builder::Test

Download:
CGI-Builder-1.36.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

CGI::Builder::Test - Adds some testing methods to your build

SYNOPSIS ^

  use CGI::Builder
  qw| CGI::Builder::Test
    |;

DESCRIPTION ^

This module adds just a couple of very basics methods used for debugging.

METHODS ^

dump()

    print STDERR $webapp->dump();

The dump() method returns a chunk of text which contains all the environment and CGI form data of the request, formatted for human readability. Useful for outputting to STDERR.

dump_html()

    my $output = $webapp->dump_html();

The dump_html() method returns a chunk of text which contains all the environment and CGI form data of the request, formatted for human readability via a web browser. Useful for outputting to a browser.

OVERRIDDEN CGI::Builder Methods ^

die_handler

This method is overridden in order to add the dump of the object to the error message.

SUPPORT ^

See "SUPPORT" in CGI::Builder.

AUTHOR and COPYRIGHT ^

© 2004 by Domizio Demichelis.

All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as perl itself.