logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: POD enhancement - sub INC { }: msg#01684

Subject: Re: POD enhancement - sub INC { }
On Tue, Sep 30, 2003 at 06:37:35PM +0100, Graham Barr <gbarr@xxxxxxxxx> wrote:
> 
> On 30 Sep 2003, at 18:30, Sam Vilain wrote:
> 
> >These two snippets should be the same:
> >
> >package Foo;
> >sub INC{ print "Foo\n" };
> >package main;
> >$x=bless {},Foo;
> >$x->INC;
> >
> >sub Foo::INC{ print "Foo\n" };
> >$x=bless {},Foo;
> >$x->INC;
> 
> This is not limited to just INC, but all special globals. STDIN, 
> STDOUT, STDERR, ARGV, SIG, ARGVOUT and ENV

Yes, but I can't think of any of those except INC that have a special
meaning as a sub name.




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>