our approach
|
contact us
Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Employ single variables
Assign a number to a single variable
Open the text editor, then create a new script with this code:
#!/usr/bin/perl
print "Content-Type: text/html \n\n";
# The code below makes it easy to change
# numbers output by the script.
$cars_on_lot = 100;
print "<p>Welcome to <b>ACME AUTO!</b></p>";
print "<p>Which one of our $cars_on_lot cars is right for you?</p>\n";
<< BACK
NEXT >>