Hi All,
 The only was I could find to do this was:-
my %rmhash = $self->run_modes();
my $subname = $rmhash{$runmode};
then looking up the key in the hash.

Seems a bit of a waste to return the whole hash.

$self->run_modes( $runmode ) gives and error rather than returning the sub name.

Is there a better way to do it?


Lyle


#####  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