Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Storable; my %h2; my %hash = ( 'roster' => { 'mike' => 'biology', 'carol' => 'math', 'tom' => 'history', }, 'courses' => { 'math' => 'full', 'biology' => 'open', 'art' => 'open', } ); store(\%hash, "test.dat"); %h2 = %{retrieve "test.dat"}; for (sort keys %h2) { print $_, " ", %{$h2{$_}}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Introducing spaces between the values in a hash of hashes
by kennethk (Abbot) on Jan 24, 2014 at 21:46 UTC | |
|
Re: Introducing spaces between the values in a hash of hashes
by Kenosis (Priest) on Jan 24, 2014 at 21:17 UTC |