my @array = qw( hello world ); my $array_ref = \@array; print $array[0], "\n"; # prints hello print $array_ref->[0], "\n"; # prints hello
In reply to Re: Pointer to a structure in Perl
by Loops
in thread Pointer to a structure in Perl
by vishant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |