programming-examples/perl/Hash/Converting a hash into an array by simple assignment.pl
2019-11-15 12:59:38 +01:00

8 lines
134 B
Perl

#!/usr/bin/perl -w
# Convert hash to array
$hash{"Name"} = "G ";
$hash{"Address"} = "1";
$hash{"City"} = "W";
@array = %hash;