Closed mauke closed 2 months ago
Do you have an example case where this was causing a problem? If so I would be interested in making a test related to it,
No, I don't even know what these methods are for. I noticed the issue because I added a new warning to blead perl.
I have to look deeper into this. I suspect I meant grep { !($subs{$_} == $_) }
but I am not sure why I would not have just used !=
in that case...
actually, having re-read it, yeah, I think you got it correct here.
As far as I can tell, the intended logic is:
However, what the code actually did was to compare the result of
!
(which is a boolean, numerically 0 or 1) to a coderef, which is always false. In other words, the removecontext* methods would ignore their arguments and always remove everything.