Subject: | code refs in 1.003_001 |
Date: | Fri, 06 Feb 2009 10:35:17 +1100 |
To: | bug-Test-Weaken [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In Test::Weaken 1.003_001 the program
use strict;
use warnings;
use Test::Weaken;
sub foo { }
print scalar Test::Weaken::poof (sub { return [ \&foo ] }),
"\n";
prints 1 ref unfreed, where in 1.002 it printed 0. Are code refs still
unchecked, or meant to be?
(It'd be no bad thing to check for unfreed anonymous subs, though global
subs like this of course persist. I don't know if it's feasible to tell
the difference.)