develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [patch] small bufgixes

Thread Previous | Thread Next
February 27, 2003 03:02
Re: [patch] small bufgixes
Message ID:
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 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About