http://www.perlmonks.org?node_id=1023770

tqisjim has asked for the wisdom of the Perl Monks concerning the following question:

Same as before. Don't know if it's best to open a new thread. But here goes:

Cpantesters reports that my distro NoSQL::PL2SQL is failing in v5.10 and v5.12.

The errors on CPAN are probably due to the failure that tobyink documented earlier, Attempt to free unreferenced scalar in line 53.

Here's the snipped of code:

for my $v ( values %{ $self->{globals}->{memory} } ) { my $item = NoSQL::PL2SQL::Object::item( $v->[0] ) ; delete $item->[1]->{clone} if $item && $item->[1] ; # +# ERROR IS HERE }

This code is not so straightforward. Line 399 of the same file looks like:

Scalar::Util::weaken( $self->{globals}->{memory}->{$k}->[0] ) ;

So the scalar in question is unreferenced by design.

It's tempting to assume that the error's origin is a bug that was eventually fixed by v5.14. So along with any technical responses from the Monks, it might also be helpful to determine whether I should exclude those versions from my distro. I don't think I have enough knowledge of Perl's internals to consider a workaround.

Thanks again!