[cgiapp] Getting sub associated with runmode?

Lyle webmaster at cosmicperl.com
Sun Jan 18 20:33:30 EST 2009


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



More information about the cgiapp mailing list