Here’s what the relevant lines in this script do:
-
@AcmeInventory = (178,286,387);
The numbers 178, 286, and 387 are assigned to the array variable @AcmeInventory.
-
print @AcmeInventory;
The numbers assigned the array variable @AcmeInventory are printed to the browser window: 178, 286, and 387.
-
Upload numberlist.pl to the perlscripts directory on the Web server, then set its permissions so that anyone can execute it.
-
Open perllinks.html and insert a new link to numberlist.pl:
<p><a
href="http://www.yourwebsite.com/cgi-bin/perlscripts/numberlist.pl">7. Create a list of numbers.</a></p>
-
Save perllinks.html, then upload it to the home directory in your Web site.