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
Typo in documentation of "say" on perldoc.perl.org #15075
Comments
From @rrthomasCreated by @rrthomasOn the page http://perldoc.perl.org/functions/say.html it says: Alternately, include a use v5.10 or later to the current scope. However, that would require perl 5.100 or later. Instead of “use v5.10” it should say “use 5.10.0”. Perl Info
|
From @rrthomasOn Sun Dec 06 09:10:24 2015, rrt wrote:
On a second reading, I note this should also be changed to say either "include…in" or "add…to", rather than "include…to" as at present. |
From [Unknown Contact. See original ticket]On Sun Dec 06 09:10:24 2015, rrt wrote:
On a second reading, I note this should also be changed to say either "include…in" or "add…to", rather than "include…to" as at present. |
From madcityzen@gmail.com
I've attached a patch to fix the wording, but the "use v5.10" is correct: $ perl -e'use v5.10; say "Hello"' Perl splits version strings on "." and prefixes zeros (like `sprintf "%03d"`). The leading "v" is what says to do this. Without that leading "v", you would need to say "use 5.010". Doug Bell |
From madcityzen@gmail.com0001-fix-awkward-wording-in-say-documentation.patchFrom 901949680f496040adee747d50a64510116632f9 Mon Sep 17 00:00:00 2001
From: Doug Bell <madcityzen@gmail.com>
Date: Sun, 6 Dec 2015 12:33:26 -0600
Subject: [PATCH] fix awkward wording in say documentation
---
pod/perlfunc.pod | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 41d0be0..72e62a5 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6157,7 +6157,7 @@ use a real filehandle like C<FH>, not an indirect one like C<$fh>.
This keyword is available only when the C<"say"> feature
is enabled, or when prefixed with C<CORE::>; see
-L<feature>. Alternately, include a C<use v5.10> or later to the current
+L<feature>. Alternately, add a C<use v5.10> or later to the current
scope.
=item scalar EXPR
--
2.4.9 (Apple Git-60)
|
@jkeenan - Status changed from 'new' to 'open' |
From @maukeAm So 06. Dez 2015, 09:10:24, rrt schrieb:
No, that's wrong. Did you try it? "use v5.10", "use v5.10.0", "use 5.10.0", "use 5.010" all mean the same thing. |
From @rrthomasApologies, I must've typed "use 5.10;". The second part of my correction still stands. On 7 December 2015 at 06:29, l.mai@web.de via RT <perlbug-followup@perl.org>
-- |
From @jkeenanOn Sun Dec 06 10:41:39 2015, madcityzen@gmail.com wrote:
Thanks. Pushed to blead in commit 598b145. -- |
@jkeenan - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126833 (status was 'resolved')
Searchable as RT126833$
The text was updated successfully, but these errors were encountered: