Mega Code Archive

 
Categories / Perl / Hash
 

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;