develooper Front page | perl.perl5.porters | Postings from October 2007

Re: [PATCH] New failing test for RT#45667 (m/[#]/x treated inconsistently)

Thread Previous | Thread Next
Rafael Garcia-Suarez
October 30, 2007 05:53
Re: [PATCH] New failing test for RT#45667 (m/[#]/x treated inconsistently)
Message ID:
On 28/10/2007, Chris Dolan <> wrote:
> Hello,
> RT#45667 points out that the Perl parser and the Regexp parser treat
> m/[#]/x differently.  The former treats the # as a comment character
> and the latter treats it as a literal.  I propose that we adopt the
> Perl parser's behavior because 1) doing otherwise would require us to
> add more regexp-specific knowledge to the Perl parser and 2) other
> Regexp engines may not want to treat [#] the same as the current
> default engine.
> The patch below adds a (currently failing) test to the regexp parser
> to enforce this decision.  The patch is against rsync

it doesn't seem that op/regexp.t supports TODO tests. That would
probably be a worthwhile addition...

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About