summaryrefslogtreecommitdiff
path: root/lib/overload.pm
diff options
context:
space:
mode:
authorDaniel Chetlin <daniel@chetlin.com>2000-08-27 18:14:18 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-28 16:52:50 +0000
commit8db13b63e8c97aef3be60f7b6948efc6d11358ee (patch)
treef97e8586b11b78d2fc745d183a3e6cd703471a61 /lib/overload.pm
parent7fd4ba6b96ebd57a4ea1ac11a170cf516c5edd96 (diff)
downloadperl-8db13b63e8c97aef3be60f7b6948efc6d11358ee.tar.gz
_Minor_ change to overload.pm pod
Message-ID: <20000828011418.J769@ilmd.chetlin.org> p4raw-id: //depot/perl@6860
Diffstat (limited to 'lib/overload.pm')
-rw-r--r--lib/overload.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/overload.pm b/lib/overload.pm
index ba96bc9ab6..f7772c1564 100644
--- a/lib/overload.pm
+++ b/lib/overload.pm
@@ -878,11 +878,10 @@ numeric value.) This prints:
=head2 Two-face references
Suppose you want to create an object which is accessible as both an
-array reference, and a hash reference, similar to the builtin
-L<array-accessible-as-a-hash|perlref/"Pseudo-hashes: Using an array as
-a hash"> builtin Perl type. Let us make it better than the builtin
-type, there will be no restriction that you cannot use the index 0 of
-your array.
+array reference and a hash reference, similar to the
+L<pseudo-hash|perlref/"Pseudo-hashes: Using an array as a hash">
+builtin Perl type. Let's make it better than a pseudo-hash by
+allowing index 0 to be treated as a normal element.
package two_refs;
use overload '%{}' => \&gethash, '@{}' => sub { $ {shift()} };