Employ lists of variables
Create lists of number variables
  1. Create a new script with this code:

    #!/usr/bin/perl
    print "Content-Type: text/html \n\n";

    # This script demonstrates how to
    # create a numeric array.

    @AcmeInventory = (178,286,387);

    print @AcmeInventory;

    print "<p>We just created a list of numbers using an array variable!";
  2. Save the script as numberlist.pl in the PERLSCRIPTS folder.