An array is a named list.
# When you use an array variable, you use the @ character
#!/usr/bin/perl -w
# Array example.
@array = (1,2,3,'red');
print "@array\n";
# You can mix and match numbers and text in Perl arrays.
Related examples in the same category