On Thu, Feb 27, 2003 at 01:18:45AM -0500, Benjamin Goldberg wrote: > > Finally, I added a catch so that CODE blocks which are inserted into > > @INC don't get treated as strings. > > Coderefs are not the only refs allowed in @INC -- you can put in an > arrayref or a blessed refs, too. A good thing to run this against is Ingy's new only.pm which sticks objects into @INC. > (This is the second time in two weeks that I've seen someone write code > with the believe that coderefs are the only type of ref which can go > into @INC ... I would love to know where this misconception came from.) Its not widely known that you can even put code refs into @INC and IIRC none of this was documented prior to 5.8.0. So its not so hard a stretch that people might not know all the details.Thread Previous | Thread Next