X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperltie.pod;h=3665f0420e57119c45182d1432eca7442dbb20ff;hb=3874323d73ef08e6639270ea07e834aec3e379f1;hp=adc557d71c4488f9c89cb49c7ebeb39cb4082bdc;hpb=58c2ef1935bc22d76403b75989b56de9eecb6730;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perltie.pod b/pod/perltie.pod index adc557d..3665f04 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -258,7 +258,9 @@ index whose value we're trying to fetch. If a negative array index is used to read from an array, the index will be translated to a positive one internally by calling FETCHSIZE -before being passed to FETCH. +before being passed to FETCH. You may disable this feature by +assigning a true value to the variable C<$NEGATIVE_INDICES> in the +tied array class. As you may have noticed, the name of the FETCH method (et al.) is the same for all accesses, even though the constructors differ in names (TIESCALAR @@ -359,7 +361,7 @@ C<$self-E{ELEMSIZE}> spaces only, it does not exist: Delete the element at index I from the tied array I. -In our example, a deleted item is C<$self->{ELEMSIZE}> spaces: +In our example, a deleted item is C<$self-E{ELEMSIZE}> spaces: sub DELETE { my $self = shift; @@ -1074,6 +1076,14 @@ source code to MLDBM. Tied filehandles are still incomplete. sysopen(), truncate(), flock(), fcntl(), stat() and -X can't currently be trapped. +The bucket usage information provided by C is not +available. If C<%hash> is tied, this will currently result in a +fatal error. + +Counting the number of entries in a hash via C or +C) is inefficient since it needs to iterate +through all the entries with FIRSTKEY/NEXTKEY. + =head1 AUTHOR Tom Christiansen