Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
Employ lists of variables
Create lists of number variables
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!";
Save the script as
numberlist.pl
in the
PERLSCRIPTS
folder.
<< BACK
NEXT >>