in reply to Need some help with Hashes and formatting
my %hash = ("fred" => "flintstone", "dino" => undef, "barney" => "rubb +le", "betty" => "rubble"); my @keys = keys %hash; printf ("%10s\t=>%10s\n", "Keys", "Values"); map ((printf ("%10s\t=>%10s\n", $_, $hash{$_})), @keys);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need some help with Hashes and formatting
by choroba (Cardinal) on Jun 25, 2014 at 11:26 UTC | |
by solegaonkar (Beadle) on Jun 26, 2014 at 09:19 UTC |