diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-01-06 16:14:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-01-06 16:14:45 +0100 |
commit | e1af93bfd7a551089be04d31ab1500f8cf88c766 (patch) | |
tree | df98d89c760b7b7dad9b76d5bc31c34f8e596e8c /lib | |
parent | 899e26d79fe68a0a01e89e5fcbdaa43c6c81b473 (diff) |
Simplestore(3pm): SYNOPSIS: It's a hashref, not a hash
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Simplestore.pm | 10 |
1 files 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 |