This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldata.pod: clarify hash in scalar context.
authorDavid Mitchell <davem@iabyn.com>
Mon, 5 Jun 2017 14:32:10 +0000 (15:32 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Jun 2017 14:32:10 +0000 (15:32 +0100)
RT ##131166

pod/perldata.pod

index 3b43d25..b390e67 100644 (file)
@@ -399,9 +399,9 @@ leave nothing to doubt:
 
     $element_count = scalar(@whatever);
 
-If you evaluate a hash in scalar context, it returns false if the
-hash is empty.  If there are any key/value pairs, it returns true.
-A more precise definition is version dependent.
+If you evaluate a hash in scalar context, it returns a false value if
+the hash is empty.  If there are any key/value pairs, it returns a
+true value.  A more precise definition is version dependent.
 
 Prior to Perl 5.25 the value returned was a string consisting of the
 number of used buckets and the number of allocated buckets, separated