CGI::Out 2006.0215 review

Download
by rbytes.net on

CGI::Out is a Perl module to buffer output when building CGI programs. SYNOPSIS use CGI; use CGI::Out;

License: Perl Artistic License
File size: 3K
Developer: David Muir Sharnoff
0 stars award from rbytes.net

CGI::Out is a Perl module to buffer output when building CGI programs.

SYNOPSIS

use CGI;
use CGI::Out;

$query = new CGI;
savequery $query; # to reconstruct input

$CGI::Out::mailto = 'fred'; # override default of $header();
out $query->start_html(
-title=>'A test',
-author=>'muir@idiom.com');

croak "We're outta here!";
confess "It was my fault: $!";
carp "It was your fault!";
warn "I'm confused";
die "I'm dying.n";

use CGI::Out qw(carpout $out);
carpout(*LOG);
$CGI::Out::out # is the buffer

This is a helper routine for building CGI programs. It buffers stdout until you're completed building your output. If you should get an error before you are finished, then it will display a nice error message (in HTML), log the error, and send email about the problem.

It wraps all of the functions provided by CGI::Carp and Carp. Do not "use" them directly, instead just "use CGI::Out".

Instead of print, use out.

Requirements:
Perl

CGI::Out 2006.0215 search tags