X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldbmfilter.pod;h=d62e496f9f1b42fc7d81ff82fddd1b71e8d585e2;hb=6d3b25aa06c9837fbb97c3791369b6d8990787c7;hp=3350596aab836a228001aaf54569bc75e6be3eff;hpb=9f1b1f2d9ab55954ee07a14c4ab04bd3dd1f99d5;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldbmfilter.pod b/pod/perldbmfilter.pod index 3350596..d62e496 100644 --- a/pod/perldbmfilter.pod +++ b/pod/perldbmfilter.pod @@ -91,7 +91,7 @@ fix very easily. use Fcntl ; my %hash ; - my $filename = "/tmp/filt" ; + my $filename = "filt" ; unlink $filename ; my $db = tie(%hash, 'SDBM_File', $filename, O_RDWR|O_CREAT, 0640) @@ -124,7 +124,7 @@ Here is another real-life example. By default, whenever Perl writes to a DBM database it always writes the key and value as strings. So when you use this: - $hash{12345} = "soemthing" ; + $hash{12345} = "something" ; the key 12345 will get stored in the DBM database as the 5 byte string "12345". If you actually want the key to be stored in the DBM database @@ -137,7 +137,7 @@ Here is a DBM Filter that does it: use warnings ; use DB_File ; my %hash ; - my $filename = "/tmp/filt" ; + my $filename = "filt" ; unlink $filename ;