programming-examples/perl/Hash/Reference one value in hash by its key in print statement.pl

2 lines
52 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$hash{'fruit'} = 'apple';
print "$hash{'fruit'}\n";