Variable, Standard and Strict CGI

by on October 10th, 2007

Lets discuss deeply variables in CGI, standards of CGI and strict syntax of CGI scripts.

Variable and Standard
#!/usr/bin/perl -wt
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
my $email = "someone\";
my $url = "";
print header;
print start_html("Scalars");
print <Hello

My e-mail address is $email, and my web url is $url.

EndHTML print end_html;

While here is how we define strict syntax for CGI script.

#!/usr/bin/perl -w
# test.cgi by Bill Weinman []
# Copyright 1995-2003 William E. Weinman
# Free Softare: Use and distribution under the same terms as perl.
use strict;
use CGI;