Using set_message with CGI::Carp : URL « CGI « Perl






Using set_message with CGI::Carp

    


#!/usr/bin/perl -T

use strict;
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser set_message);
set_message("This is a better message for the end.");

print header,
start_html("Testing CGI Carp");
die ("This is a test die");
print end_html;

exit;

   
    
    
    
  








Related examples in the same category

1.URL Hex-Encoded Characters
2.A Safe String Example with uri_escape
3.Using uri_unescape to Make a String Without Escape Characters