programming-examples/perl/Hash/Values operator extracts all the values of a hash.pl
2019-11-15 12:59:38 +01:00

10 lines
192 B
Perl

#!/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";