develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134179] Storable: sv_upgrade from type 7 down to type 1

Thread Next
From:
Tony Cook via RT
Date:
June 10, 2019 01:07
Subject:
[perl #134179] Storable: sv_upgrade from type 7 down to type 1
Message ID:
rt-4.0.24-10767-1560128862-219.134179-15-0@perl.org
On Wed, 05 Jun 2019 07:41:27 -0700, ilmari wrote:
> Hi Porters,
> 
> daxim reported on IRC that the following program errors with $subject
> 
> use Storable qw(dclone);
> use Scalar::Util qw(weaken);
> 
> my $foo = [qr//,[]];
> weaken($foo->[1][0][0] = $foo->[1]);
> dclone $foo;
> 

The attached fixes it for me.

Tony

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134179

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