Saturday, October 18, 2008

Arrays

Arrays in the Perl starts with '@' symbol and it is not limited to only one data type.

#!/usr/bin/perl -w

@myArray=("Zero","one","two","three","four","five","six","seven","eight","nine");

foreach $val(@myArray)
{
print($val."\n");

}

No comments: