Bug#324800: perl: backslash not working as expected in m(\() and m[\[]
Niko Tyni
ntyni at debian.org
Sun Apr 19 19:31:45 UTC 2009
On Wed, Aug 24, 2005 at 08:10:44AM +0300, era eriksson wrote:
> Package: perl
> Version: 5.8.7-4
> Tags: upstream
>
> When square or round brackets are used as regular expression delimiters,
> the expression apparently cannot contain a backslash-escaped literal
> opening delimiter bracket.
Summary: see perlop.pod, "Gory details of parsing quoted constructs".
> I see nothing in the documentation to suggest that this is intentional
> or expected behavior.
>
> vnix$ $ perl -ne 'print if m(\()' </dev/null
> Unmatched ( in regex; marked by <-- HERE in m/( <-- HERE / at -e line
> 1.
More information about the Perl-maintainers
mailing list