Defined/Undef my $i; if( defined $i ) #false $i=0; if( defined $i ) #true my %hash; #or %hash=(); defined %hash; #false, hash is empty $hash{“1”}=“one”; exists($hash{“1”})==defined($hash{“1”})==true; undef $hash{“1”}; exists($hash{“1”})== false; defined($hash{“1”})==true; delete $hash{“1”}; exists($hash{“1”})== false; defined($hash{“1”})==false;
Basic HTML Document Title Hello World!
Webserver displays a default (in most cases) file: index.html if it doesn’t exist then all files in that directory are listed. To protect server information, usually this option (file listing) is switched off. File Names
Paragraph Next Paragraph. And line break. Unordered List (UL): We Love Perl. We Love Perl IN BOLD We Loooove Perl Now, We Love HTML Too! Horizontal rule (HR): Ordered List (OL): We Love Perl. We Love Perl IN BOLD We Loooove Perl Now, We Love HTML Too!
Link To Images: Image Options: Tables: Cell 1.1 Cell 1.2 Cell 2.1 Cell 2.2
Table Options: Cell Cell Cell Cell Aligned left Aligned right
CGI - Common Gateway Interface CGI – a standard that defines the protocol between a web server and a application (script). Web Browser Web Server Application DB CGI http/ ssl … search example
Sending information to CGI Two ways to submit information: HTML form With URL
CGI - Simple script #!/usr/bin/perl use CGI qw(:standard); print header; $param= param('formtext'); print " Hello CGI: $param"; print end_html;