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

8 lines
220 B
Perl

#!/usr/local/bin/perl -w
my $hashRef = {'Name' => 'Tom', 'Age' => 3, 'Height' => '10 cm'};
print $hashRef->{'Name'} . "\n";
print $hashRef->{'Age'} . "\n";
print $hashRef->{'Height'} . "\n";