1. Save the script as scalarnum.pl in the PERLSCRIPTS folder.

    Here’s what each line of the script does:
  • #!/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";

    These lines should look familiar. The first specifies the path to your Web server’s Perl module. The second tells the browser that what comes after this line is HTML.