develooper Front page | perl.perl5.porters | Postings from September 2016

Re: [perl #129277] [PATCH] addition to perlrecharclass about '$' as"special"

Thread Previous
From:
Lukas Mai
Date:
September 15, 2016 20:48
Subject:
Re: [perl #129277] [PATCH] addition to perlrecharclass about '$' as"special"
Message ID:
66c99dc9-06ec-707a-9b57-9f1188ff5874@gmail.com
Am 15.09.2016 um 20:34 schrieb Kevin Goess (via RT):
> # New Ticket Created by  Kevin Goess
> # Please include the string:  [perl #129277]
> # in the subject line of all future correspondence about this issue.
> # <URL: https://rt.perl.org/Ticket/Display.html?id=129277 >
>
>
> This is a bug report for perl from cpan@goess.org,
> generated with the help of perlbug 1.40 running under perl 5.25.5.
>
>
> -----------------------------------------------------------------
> [Please describe your issue here]
>
> I'm suggesting a documentation change. perlrecharclass says "Most characters
> that are meta characters in regular expressions...lose their special meaning
> and can be used inside a character class without the need to escape them" and
> goes on to list the ones that do need to be escaped. It does *not* list a '$'.
> But this will not match a dollar sign or a comma:
>
>   [$,]

It will if you use it in m'...', as in m'[$,]'.

-- 
Lukas Mai <plokinom@gmail.com>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About