From 5575943be7498a2c313e6ec630966bec237c1fa8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 23:55:20 +0200 Subject: Minor documentation improvements --- lib/Simplestore.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Simplestore.pm b/lib/Simplestore.pm index 7d0834a..77c83a5 100644 --- a/lib/Simplestore.pm +++ b/lib/Simplestore.pm @@ -63,13 +63,14 @@ Simplestore - simple storage format for hash refs say $hash->{word}; # purrl $hash->{foo} = 'bar'; - $hash->{word} = "Yeah, this is more than\none word, I know"; + $hash->{sentence} = "Mind the\nnewnile.; save('somefile', $hash); # somefile contains: - # word Yeah, this is more than - # word one word, I know + # word purrl # foo bar + # sentence Mind the + # sentence newline. =head1 DESCRIPTION @@ -100,7 +101,7 @@ save I in I. Returns nothing. =head1 STORAGE FORMAT The store file contains key-value-pairs, each of them separated by a newline, -The key and value are separated by a single tab. +the key and value are separated by a single tab. If a value contains newlines, they will be printed, but the next line(s) will be prefixed by the key. For a little example, see SYNOPSIS. -- cgit v1.2.3