develooper Front page | perl.perl6.language | Postings from June 2005

Re: AUTLOAD and $_

Thread Previous | Thread Next
From:
Luke Palmer
Date:
June 20, 2005 15:37
Subject:
Re: AUTLOAD and $_
Message ID:
7ca3f01605062015377f27569f@mail.gmail.com
On 6/20/05, chromatic <chromatic@wgz.org> wrote:
> On Mon, 2005-06-20 at 12:11 +0200, Juerd wrote:
> 
> > I think there exists an even simpler way to avoid any mess involved.
> > Instead of letting AUTOLOAD receive and pass on arguments, and instead
> > of letting AUTOLOAD call the loaded sub, why not have AUTOLOAD do its
> > thing, and then have *perl* call the sub?
> 
> Who says AUTOLOAD will always either call a loaded sub or fail?

Uh, what else can it do?  It doesn't have to load a sub to return a
code reference.

Luke

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