Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
This is a bug:
map { "$_" => "$_" } @array
Not only is that a bug, I know how to fix it and I won't have a problem with that again. Unfortunately, when I encountered this, it was strange and mysterious behavior to me. I searched for an explanation. I searched Perlmonks. I Googled. I boggled my fellow programmers. I boggled myself.
The answer, of course, was in perldoc -f map. I should have known better.
Why bug? (Score:1)
So what does the 'bugfix' look like?
Re:Why bug? (Score:2)
Re:Why bug? (Score:2)
There are plenty of ways to fix it. Probably the clearest is to wrap the
in parentheses.
In this case, it doesn't look terribly useful because it's a simplified test case. I discovered this when I and another programmer were being forced to walk symbol tables and pull out the CODE slot of blobs and examine them. I think posting the code we used to do that would have confused things even more :)
As it stands, better examples are in perldoc and they sh
Re:Why bug? (Score:1)