X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FStorable%2FStorable.pm;h=8ec8e1e58b4d23ba409f4c3ec0bdf4f969833bcd;hb=821bf9a5d89e1fc44be0165540e1f57de5c874e1;hp=19f8834a265dcf3c838e066d4489a3b73a8f82a0;hpb=a8b7ef86e7eea87c1e7ba6a6f9d5d81b5954df00;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Storable/Storable.pm b/ext/Storable/Storable.pm index 19f8834..8ec8e1e 100644 --- a/ext/Storable/Storable.pm +++ b/ext/Storable/Storable.pm @@ -791,10 +791,10 @@ Here are some code samples showing a possible usage of Storable: %color = ('Blue' => 0.1, 'Red' => 0.8, 'Black' => 0, 'White' => 1); - store(\%color, '/tmp/colors') or die "Can't store %a in /tmp/colors!\n"; + store(\%color, 'mycolors') or die "Can't store %a in mycolors!\n"; - $colref = retrieve('/tmp/colors'); - die "Unable to retrieve from /tmp/colors!\n" unless defined $colref; + $colref = retrieve('mycolors'); + die "Unable to retrieve from mycolors!\n" unless defined $colref; printf "Blue is still %lf\n", $colref->{'Blue'}; $colref2 = dclone(\%color);