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

Re: [patch] small lib.pm bufgixes

Thread Previous | Thread Next
From:
schwern
Date:
February 27, 2003 03:02
Subject:
Re: [patch] small lib.pm bufgixes
Message ID:
20030227030140.A21727@ttul.org
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


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