From e1af93bfd7a551089be04d31ab1500f8cf88c766 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Jan 2010 16:14:45 +0100 Subject: Simplestore(3pm): SYNOPSIS: It's a hashref, not a hash --- lib/Simplestore.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Simplestore.pm b/lib/Simplestore.pm index f46ef03..42d5569 100644 --- a/lib/Simplestore.pm +++ b/lib/Simplestore.pm @@ -67,12 +67,12 @@ Simplestore - simple storage format for hash refs # somefile contains: # word purrl # foo eggs - my $hash = Simplestore::load('somefile'); - say $hash->{word}; # purrl + my $ref = Simplestore::load('somefile'); + say $ref->{word}; # purrl - $hash->{foo} = 'bar'; - $hash->{sentence} = "Mind the\nnewnile."; - Simplestore::save('somefile', $hash); + $ref->{foo} = 'bar'; + $ref->{sentence} = "Mind the\nnewnile."; + Simplestore::save('somefile', $ref); # somefile contains: # word purrl -- cgit v1.2.3