Aug 282010
Array reference in Perl
Answer:
Array reference is something like a pointer to a array data structure in Perl
Example:
use strict;
use warnings;
my @a = (1, 2, 3);
my $array_ref = \@a;
$a[2] = "foo";
print $array_ref->[2]; # print out "foo" as change in @a will also be reflected in its reference