in reply to Pointer to a structure in Perl
my @array = qw( hello world ); my $array_ref = \@array; print $array[0], "\n"; # prints hello print $array_ref->[0], "\n"; # prints hello
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pointer to a structure in Perl
by AnomalousMonk (Archbishop) on Apr 01, 2013 at 21:50 UTC |