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");
}
Saturday, October 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment