develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [perl #77084] scalar //g match on overloaded object causesstring corruption

Thread Previous | Thread Next
From:
Abigail
Date:
August 19, 2010 09:36
Subject:
Re: [perl #77084] scalar //g match on overloaded object causesstring corruption
Message ID:
20100819163808.GE22963@almanda
On Sun, Aug 08, 2010 at 02:36:31PM -0700, Father Chrysostomos wrote:
> # New Ticket Created by  Father Chrysostomos 
> # Please include the string:  [perl #77084]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77084 >
> 
> 
> use Data::Dumper;
> use overoad q/""/=>sub{"foo:bar"};
> bless [], =~ /(.*)/g;
> $Data::Dumper::Useqq++;
> print Dumper "$1";
> __END__
> 
> The output varies, but it’s usually something like:
> 
> $VAR1 = "\t\0\0\0\263\337!";


I can confirm this.


Included a TODO test for this in commit a9f6cb1.


Abigail

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