programming-examples/perl/Hash/Get hash value by using the hash reference.pl
2019-11-15 12:59:38 +01:00

15 lines
270 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
my %hash = ( A => "AA",
B => "BB",
C => "CC",
D => "DD",
E => "EE" );
my $hashReference = \%hash;
print( "\$\$hashReference{ A } = $$hashReference{ A }\n" );