From 6e4c4703d5584b6bcbb9adfe4cdff420d0c88911 Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Fri, 21 Jan 2011 17:23:51 +0000 Subject: [PATCH] RT #75870 perldata.pod tied hash in scalar context update inaccurate description. --- pod/perldata.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perldata.pod b/pod/perldata.pod index 4ec9eb5..98663c4 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -276,8 +276,8 @@ set. For example, you stick 10,000 things in a hash, but evaluating %HASH in scalar context reveals C<"1/16">, which means only one out of sixteen buckets has been touched, and presumably contains all 10,000 of your items. This isn't supposed to happen. If a tied hash -is evaluated in scalar context, a fatal error will result, since this -bucket usage information is currently not available for tied hashes. +is evaluated in scalar context, the C method is called (with a +fallback to C). X X X You can preallocate space for a hash by assigning to the keys() function. -- 1.8.3.1