Hi all,
here is another plugin to discuss:
http://perl-pad.sourceforge.net/cgiapp/AutoRunmode.html
http://perl-pad.sourceforge.net/cgiapp/CGI-Application-Plugin- AutoRunmode-0.01.tar.gz
The plugin lets you flag methods as "Runmode" and then you can call them without setting up the usual name mapping table
via $self->run_modes :
package MyApp; use base 'CGI::Application'; use CGI::Application::Plugin::AutoRunmode qw [ cgiapp_prerun];
sub my_run_mode : Runmode { # do something here }
sub another_run_mode : Runmode { # do something else }
# you now have two run modes # "my_run_mode" and "another_run_mode"
Feedback, as usual, highly appreciated,
Thilo
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]