New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in documentation on "perldata" #15954
Comments
From wolf-dietrich_moeller@t-online.deCreated by wolf-dietrich_moeller@t-online.deThe documentation "perldata" reads in the section on "Scalar values" the So the sentence cited above should read: Perl Info
|
From @jkeenanOn Mon, 17 Apr 2017 12:17:45 GMT, wolf-dietrich_moeller@t-online.de wrote:
$ perl -wE '%hash = (); if (%hash) { say "Demonstrated"; } else { say "Not demonstrated"; }'
-- |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgOn Mon, 17 Apr 2017 12:17:45 GMT, wolf-dietrich_moeller@t-online.de wrote:
"False" doesn't refer to a unique value. "0" is a false value, as is "". -zefram |
From wolf-dietrich_moeller@t-online.deHi Zefram,
perl -wE "my %hash=(); my $x=%hash; print 'x=',$x;" The test program given by James adds a second step, namely the evaluation Therefore I still suggest changing the text in the documentation to
Best regards On Mon, 17 Apr 2017 12:17:45 GMT, wolf-dietrich_moeller@t-online.de wrote:
"False" doesn't refer to a unique value. "0" is a false value, as is "". -zefram |
From @iabynOn Tue, Apr 18, 2017 at 08:16:11PM +0100, Zefram wrote:
The documentation in blead says: If you evaluate a hash in scalar context, it returns false if the (it then goes on to document what it actually returns pre- and While technically correct ("the best sort of correct!"), that paragraph If you evaluate a hash in scalar context, it returns a false value if -- |
From @khwilliamsonOn 04/25/2017 05:20 AM, Dave Mitchell wrote:
+1 |
From @iabynOn Tue, Apr 25, 2017 at 12:20:40PM +0100, Dave Mitchell wrote:
Now done with v5.27.0-120-gb74e7b8. -- |
@iabyn - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release yesterday of Perl 5.28.0, this and 185 other issues have been Perl 5.28.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#131166 (status was 'resolved')
Searchable as RT131166$
The text was updated successfully, but these errors were encountered: