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

Bug: lib.pm and objects in @INC that overload stringification

Thread Next
From:
David Cantrell
Date:
August 24, 2010 09:18
Subject:
Bug: lib.pm and objects in @INC that overload stringification
Message ID:
20100824161817.GA31986@bytemark.barnyard.co.uk
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 lib.pm 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 lib.pm:

  @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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About