develooper Front page | perl.perl5.porters | Postings from August 2010

Bug: and objects in @INC that overload stringification

Thread Next
David Cantrell
August 24, 2010 09:18
Bug: and objects in @INC that overload stringification
Message ID:
It seems that if you have an object in @INC, and that object overloads
stringification, and it stringifies to the same as something else in
@INC, then when de-dupes the @INC list it sometimes (depending on
the order of entries in the list) removes the object.

The bug is this line of vaguely golfish noise in 5.12.1's

  @INC = grep { ++$names{$_} == 1 } @INC;

Has this been fixed in 5.13.x?  If not, I'll get on to it.

David Cantrell | Bourgeois reactionary pig

       23.5 degrees of axial tilt is the reason for the season

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About