programming-examples/perl/Hash/Hard References-Pointers.pl

4 lines
244 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
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