Scalars, Arrays, Hashes

 Example: http://homepages.uc.edu/cgi-bin/cgiwrap/jonesbr/simpleperl3.pl

#!/usr/local/bin/perl

print "Content-type:text/html\n\n";
print "<html><head><title>Here's my HTML!</title></head><body>";
print "Here is a simple perl script to demonstrate printing a simple HTML page.";
print "<h2>You can use <i>any</i> HTML tag you wish!</h2>";
$className = "Internet II";
print "Class Name: ";
print  $className;
@myName = ("Brandan", "Louis", "Jones");
print "<br>My first name: ";
print $myName[0];
print "<br>My middle name: ";
print $myName[1];
print "<br>My last name: ";
print $myName[2];

print "</body></html>";
 

 Hashes, Learn Something New (kinda like Communiversity)
 Home