On Wed, Apr 16, 2008 at 11:30 AM,  <[EMAIL PROTECTED]> wrote:
> Perrin Harkins <[EMAIL PROTECTED]> wrote on Wed, Apr 16, 2008 at 09:30:48AM 
> -0400:
>   $self->run_modes("AUTOLOAD" => "catchall");
>
>   sub mode1 : Runmode {}
>   sub mode2 : Runmode {}
>   sub catchall {}

I'm not a fan of sub attributes, but that looks pretty good to me.

>  But if the AUTOLOAD problem is a bug that can be fixed
>  easily, then I'd rather do that than use this workaround.

I have no idea if it's a bug or not, but a sub called AUTOLOAD has a
well-known meaning in Perl which you are not entirely following here,
and that seems very confusing to me.  It's kind of like wanting to
call your custom cleanup method DESTROY.

Or maybe I just have a chip on my shoulder because I think obsession
with syntax is one of the more self-destructive traits of the Perl
community.

- Perrin

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to