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

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
December 21, 2007 03:37
Subject:
Re: Changes in m//m in 5.10
Message ID:
b77c1dce0712210337p5a0fe9e4l4e68fabd876fb72f@mail.gmail.com
On 21/12/2007, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> On Dec 20, 2007 9:39 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> > On 12/19/07, demerphq <demerphq@gmail.com> wrote:
> > > Probably it would be better to simply warn "Useless use of modifiers
> > > on m/// at line ...".
> >
> > Here's an incomplete patch that implements this, could someone with
> > better luser communication skills fix the diagnostics message please?
>
> Here's a complete one, thanks dmq!

I haven't tested, but isn't this going to warn even in cases like the
following?:
my $r = qr/^foo/;
/$r|^bar/m;

(moreover, where are the tests ? :)

Thread Previous | Thread Next


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