summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-07-15 00:36:25 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-07-15 00:36:25 +0000
commitc954a603b8f02c172ffe0fd3503b4d7ca983ad99 (patch)
tree73abb08ca471579b836d3c6aa18efcce51cd59bd /pod
parentd825a42e0a67d546192c470c4cca7da269ab90b1 (diff)
downloadperl-c954a603b8f02c172ffe0fd3503b4d7ca983ad99.tar.gz
Quote string argument in example -- necessary if using strict subs
Diffstat (limited to 'pod')
-rw-r--r--pod/perlbot.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlbot.pod b/pod/perlbot.pod
index 0fd545fe88..0f7078f197 100644
--- a/pod/perlbot.pod
+++ b/pod/perlbot.pod
@@ -277,11 +277,11 @@ This example demonstrates an interface for the SDBM class. This creates a
package main;
use Fcntl qw( O_RDWR O_CREAT );
- tie %foo, Mydbm, "Sdbm", O_RDWR|O_CREAT, 0640;
+ tie %foo, "Mydbm", "Sdbm", O_RDWR|O_CREAT, 0640;
$foo{'bar'} = 123;
print "foo-bar = $foo{'bar'}\n";
- tie %bar, Mydbm, "Sdbm2", O_RDWR|O_CREAT, 0640;
+ tie %bar, "Mydbm", "Sdbm2", O_RDWR|O_CREAT, 0640;
$bar{'Cathy'} = 456;
print "bar-Cathy = $bar{'Cathy'}\n";
@@ -522,6 +522,6 @@ behavior by adding custom FETCH() and STORE() methods, if this is desired.
package main;
use Fcntl qw( O_RDWR O_CREAT );
- tie %foo, Mydbm, "adbm", O_RDWR|O_CREAT, 0640;
+ tie %foo, "Mydbm", "adbm", O_RDWR|O_CREAT, 0640;
$foo{'bar'} = 123;
print "foo-bar = $foo{'bar'}\n";