[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Explicitly declaring the AUTOLOAD runmode


Hello All,

I was working on a CGI::App, when it dawned on me that it's a little
silly that I have to explicitly declare an AUTOLOAD runmode. It irks me
a little because it's not really one of my VALID run modes, but
declaring it with $self->run_modes() means that if someone calls my app
with rm=AUTOLOAD CGI::App thinks it's a valid run-mode.

It's really a minor quibble, because in theory, calling an app with
rm=AUTOLOAD will do the same for any invalid runmode (and calling the
app with rm=AUTOLOAD will still go to the AUTOLOAD sub even if AUTOLOAD
isn't a valid runmode).

Basically, I'm suggesting a default AUTOLOAD sub so I don't have to
pollute my run_modes hash table. Obviously, it's not a matter of
high-importance, but I'm curious how others feel about it.

-Brian Cassidy


http://www.gordano.com - Messaging for educators.

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.