summaryrefslogtreecommitdiff
path: root/pod/perltie.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-06 19:51:49 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-06 19:51:49 +0000
commit159b10bbeba7b6f29b26844c4a919e2a39f1feb6 (patch)
tree2f12974756d488f98f5ab01596d5b69a9e2c3177 /pod/perltie.pod
parenta3bcc51ebd4e201d85a37d8410b7a375b8d94244 (diff)
downloadperl-159b10bbeba7b6f29b26844c4a919e2a39f1feb6.tar.gz
Clarify the description of SCALAR in perltie
p4raw-id: //depot/perl@21856
Diffstat (limited to 'pod/perltie.pod')
-rw-r--r--pod/perltie.pod8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perltie.pod b/pod/perltie.pod
index 468855c685..327af04b54 100644
--- a/pod/perltie.pod
+++ b/pod/perltie.pod
@@ -763,10 +763,10 @@ thing, but we'll have to go through the LIST field indirectly.
This is called when the hash is evaluated in scalar context. In order
to mimic the behaviour of untied hashes, this method should return a
false value when the tied hash is considered empty. If this method does
-not exist, perl will make some educated guesses and return false when
-the hash is not inside an iteration. In this case, FIRSTKEY is called
-and the result will be a false value if FIRSTKEY returns the empty list,
-true otherwise.
+not exist, perl will make some educated guesses and return true when
+the hash is inside an iteration. If this isn't the case, FIRSTKEY is
+called, and the result will be a false value if FIRSTKEY returns the empty
+list, true otherwise.
In our example we can just call C<scalar> on the underlying hash
referenced by C<$self-E<gt>{LIST}>: