Example two - array variables


#Example two - array variables and print.
# by Al Bento

$a = "this is example";
$b = 2;
@a = ($a, $b);

# please note that we use [] brackets to indicate elements of
# the array in the print command below.

print "$a[0] number $a[1]\n";

Download the script


This page is maintained by Al Bento who can be reached at abento@ubmail.ubalt.edu. This page was last updated on June 15, 1997. Although we will attempt to keep this information accurate, we can not guarantee the accuracy of the information provided.