programming-examples/perl/Hash/Reference one value in hash by its key in print statement.pl
2019-11-15 12:59:38 +01:00

2 lines
52 B
Perl

$hash{'fruit'} = 'apple';
print "$hash{'fruit'}\n";