, , , Storable Data:: Dumper, (5.7.3 5.5 ).
/, ala
package MyImportantHash;
use Exporter;
our @EXPORT = qw( %important_hash );
our %important_hash = (
some_key => 'some_value',
);
1;
use MyImportantHash;
say "$_ => $important_hash{$_}" for sort keys %important_hash;
Of course, all this assumes that you do not want the changes in the hash, but in memory, to be automatically displayed in the file. If you do, look no further than davorg.
source
share