diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-07-15 00:36:25 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-07-15 00:36:25 +0000 |
commit | c954a603b8f02c172ffe0fd3503b4d7ca983ad99 (patch) | |
tree | 73abb08ca471579b836d3c6aa18efcce51cd59bd /pod | |
parent | d825a42e0a67d546192c470c4cca7da269ab90b1 (diff) | |
download | perl-c954a603b8f02c172ffe0fd3503b4d7ca983ad99.tar.gz |
Quote string argument in example -- necessary if using strict subs
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlbot.pod | 6 |
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"; |