-
Notifications
You must be signed in to change notification settings - Fork 555
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
[doc] Mistake in perlrecharclass #17892
Comments
On Fri, Jun 26, 2020 at 03:27:22AM -0700, kernschmelze wrote:
**Where**
perrecharclass
**Description**
In the section "Special Characters Inside a Bracketed Character Class"
there is this:
$a =~ m/[$,]/; # double-quotish: matches "\t", "|", or " "
That looks utterly wrong to me.
What seems wrong about it? A few lines above that there is the line
$, = "\t| ";
and the point of that section is to point out that variables are
expanded before the regex is compiled, so the example is equivalent to
$a =~ m/[\t| ]/;
…--
Red sky at night - gerroff my land!
Red sky at morning - gerroff my land!
-- old farmers' sayings #14
|
It took me a couple of minutes when staring at the .pod file to realize where So I'd like to suggest a little documentation patch: Thank you very much. |
Correct typo spotted by Dan Book. For: #17892
Correct typo spotted by Dan Book. For: #17892
@khwilliamson committed that patch and one other correction from @Grinnz last month. Closing this ticket. Thank you very much. |
Where
perlrecharclass
Description
In the section "Special Characters Inside a Bracketed Character Class"
there is this:
That looks utterly wrong to me.
The text was updated successfully, but these errors were encountered: