An array variable can be stated as a list of scalars, which can be a numbers and strings. An array variable can store many values. The difference between an array variable and a scalar variable is that array variable can store many values, while scalar variable can store a single value.
The first element of an array variable is referred as 0. Perl array variables start with a symbol "@".
perlarrayvariablescript1.pl
The complete Array Variable script
#!/usr/bin/perl
###############################################
# Author : Togotutor
# Description : Perl Array Variable Script
##############################################
print \"Content-type: text/html\\n\\n\";
@numbers = (1, 2, 3, 4); #Array variable numbers with assigned value as 1, 2, 3, 4
print \"@numbers[0]\\n\";
print \"@numbers[1]\\n\";
print \"@numbers[2]\\n\";
print \"@numbers[3]\\n\";
exit; #script will exit now