diff options
author | Yitzchak Scott-Thoennes <sthoenna@efn.org> | 2003-05-07 08:27:07 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-05-08 18:12:46 +0000 |
commit | 126c71c82576d5dc652db25ca9e3f8e18442c4fd (patch) | |
tree | e2790a78faaa94be96e8fcce8035cddddae1602e /pod/perltie.pod | |
parent | 86e5a81e88dbe10bf1c195d6ca6fefab8bfafc17 (diff) | |
download | perl-126c71c82576d5dc652db25ca9e3f8e18442c4fd.tar.gz |
Re: [perl #17718] %tiedhash in bool context doesn't check if hash is empty
Message-ID: <7gYu+gzkgaFU092yn@efn.org>
p4raw-id: //depot/perl@19452
Diffstat (limited to 'pod/perltie.pod')
-rw-r--r-- | pod/perltie.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perltie.pod b/pod/perltie.pod index 05b79730c3..3665f0420e 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -1076,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<scalar(%hash)> 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<scalar(keys(%hash))> or +C<scalar(values(%hash)>) is inefficient since it needs to iterate +through all the entries with FIRSTKEY/NEXTKEY. + =head1 AUTHOR Tom Christiansen |