writing to perllocal.pod fails if it was never created;
[p5sagit/p5-mst-13.2.git] / pod / perlref.pod
index 753cd01..12bc581 100644 (file)
@@ -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