Converting a hash into an array by simple assignment : Hash Definition « Hash « Perl
- Perl
- Hash
- Hash Definition
Converting a hash into an array by simple assignment
#!/usr/bin/perl -w
# Convert hash to array
$hash{"Name"} = "G ";
$hash{"Address"} = "1";
$hash{"City"} = "W";
@array = %hash;
Related examples in the same category