diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-11 19:15:46 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-11 19:15:46 +0000 |
commit | 082ab4105db91207118a22ff2c45d50a1b772838 (patch) | |
tree | 219ceaa931016e0566c388b21fd4ff08a6e78df1 /pod | |
parent | 35a734be319e73f3caacab9f423c3ca51b60342b (diff) | |
download | perl-082ab4105db91207118a22ff2c45d50a1b772838.tar.gz |
writing to perllocal.pod fails if it was never created;
tweak pseudo-hash example (both suggested by Michael G Schwern
<schwern@pobox.com>)
p4raw-id: //depot/perl@4345
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlref.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlref.pod b/pod/perlref.pod index 753cd012ed..12bc581a6d 100644 --- a/pod/perlref.pod +++ b/pod/perlref.pod @@ -579,7 +579,7 @@ The second is to use exists() on the hash reference sitting in the first array element. This checks to see if the given key is a valid field in the pseudo-hash. - exists $phash->[0]{pants}; # true, 'pants' is a valid field + exists $phash->[0]{bar}; # true, 'bar' is a valid field exists $phash->[0]{shoes}; # false, 'shoes' can't be used =head2 Function Templates |