develooper Front page | perl.perl5.porters | Postings from November 2008

Re: Perl 5.8.x - bug with nested RE

Thread Previous | Thread Next
From:
Eric Brine
Date:
November 30, 2008 14:10
Subject:
Re: Perl 5.8.x - bug with nested RE
Message ID:
f86994700811301410x4722efeap1c7c86d74f8de0d8@mail.gmail.com
On Sun, Nov 30, 2008 at 4:58 PM, Eric Brine <ikegami@adaelis.com> wrote:

> Isn't the problem here that 5.8 suffered from very a sticky /m?


I forgot to include a workaround:

$rules =~ s{^RULES\n(.*?)^ENDRULES}{
            my $c = $1;
            no warnings 'deprecated';   # <--
            local $* = 0;               # <--
            $c =~ s/\n$/ARGH/;
            print ">>$c<<\n\n";
          }gems;

- Eric


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