programming-examples/perl/Hash/Hard References-Pointers.pl
2019-11-15 12:59:38 +01:00

4 lines
244 B
Perl

my $arrayptr=\@array; # creates a pointer to an array
my $scalarptr=\$scalar; # creates a pointer to a scalar
my $hashptr=\%assoc_array; # creates a pointer to a hash
my $funcptr=\&subroutine; # creates a pointer to a subroutine