summaryrefslogtreecommitdiff
path: root/lib/Simplestore.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Simplestore.pm')
-rw-r--r--lib/Simplestore.pm10
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