Help for this page

Select Code to Download


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