From: Adrian M. Enache Date: Wed, 16 Apr 2003 21:11:11 +0000 (+0300) Subject: Re: any takers for this Storable bug? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4193312177189f6e5e8caee032cd298198ec91f;p=p5sagit%2Fp5-mst-13.2.git Re: any takers for this Storable bug? Message-ID: <20030416181111.GA6687@ratsnest.hole> ams had already fixed the bug by #19227, but take the test case. p4raw-id: //depot/perl@19266 --- diff --git a/ext/Storable/t/tied.t b/ext/Storable/t/tied.t index a75766c..06be10b 100644 --- a/ext/Storable/t/tied.t +++ b/ext/Storable/t/tied.t @@ -207,3 +207,14 @@ my $ht = thaw($hf); ok 20, defined $ht; ok 21, $ht->{'x'} == 1; ok 22, $FAULT::fault == 2; + +{ + package P; + use Storable qw(freeze thaw); + our ($a,$b); + $b = "not ok "; + sub TIESCALAR { bless \$a } sub FETCH { "ok " } + tie $a, P; my $r = thaw freeze \$a; $b = $$r; + print $b , 23, "\n"; +} +