programming-examples/perl/Hash/Converting a hash into an array by simple assignment.pl

8 lines
134 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
# Convert hash to array
$hash{"Name"} = "G ";
$hash{"Address"} = "1";
$hash{"City"} = "W";
@array = %hash;