Skip Menu |

This queue is for tickets about the Net-IPTrie CPAN distribution.

Report information
The Basics
Id: 97458
Status: open
Priority: 0/
Queue: Net-IPTrie

People
Owner: Nobody in particular
Requestors: DFREEDMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Reference is already weak at
I suspect some changes to perl core (tested in v5.18.2) , attempts to re-weaken references which are already weakened result in the warning "Reference is already weak at". This can be rectified by checking the reference with isweak() first before attempting to weaken it. Example of a patch: 7c7 < use Scalar::Util qw(weaken); --- Show quoted text
> use Scalar::Util qw(weaken isweak);
60c60 < weaken $ret->{'Net::IPTrie::_Node::up'}; --- Show quoted text
> weaken $ret->{'Net::IPTrie::_Node::up'} unless (isweak($ret->{'Net::IPTrie::_Node::up'}));
70c70 < weaken $self->{'Net::IPTrie::_Node::up'}; --- Show quoted text
> weaken $self->{'Net::IPTrie::_Node::up'} unless (isweak($ret->{'Net::IPTrie::_Node::up'}));
Of course, it should have read this in the latter half: Show quoted text
> < weaken $self->{'Net::IPTrie::_Node::up'}; > ---
> > weaken $self->{'Net::IPTrie::_Node::up'} unless (isweak($self-
> > >{'Net::IPTrie::_Node::up'}));
I have applied the attached patch in the OpenBSD ports tree.
Subject: patch-lib_Net_IPTrie_Node_pm
Download patch-lib_Net_IPTrie_Node_pm
application/octet-stream 1.1k

Message body not shown because it is not plain text.