- or download this
BEGIN {
use CGI::Carp qw(carpout);
carpout(\*LOGGY) if open(LOGGY,'>>'.__FILE__.'.err.log');
}
- or download this
#!/usr/bin/perl
use warnings FATAL => qw( all );
...
BAREWORD;
}
- or download this
#!/usr/bin/perl
$SIG{__WARN__} = sub {die("warning: ",@_)};
warn "hello";
__END__
- or download this
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
...
use strict;
use warnings;
warn "hello";
- or download this
BEGIN {
use vars qw( $WARR );
...
END {
print "Content-Type: text-html\r\n\r\n <pre> $WARR </pre>";
}