programming-examples/perl/Hash/Values operator extracts all the values of a hash.pl

10 lines
192 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
# Associative array or hash values.
$hash{"Name"} = "G ";
$hash{"Address"} = "1.";
$hash{"City"} = "W";
@values = values(%hash);
print "Values are: @values\n\n";