Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Michael Peters
Geoffrey G. Hankerson wrote: 2. Micael Peters suggests: my $runmode = $query-param('page'); my %rms = $self-run_modes(); return $self-$rms{$runmode}; This returns this error: syntax error at Supersite.pm line 694, near $rms{ syntax error at Supersite.pm line 696, near } Well, I guess I should have

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Cees Hek
On Mon, 14 Mar 2005 10:27:34 -0600, Geoffrey G. Hankerson [EMAIL PROTECTED] wrote: 2. Micael Peters suggests: my $runmode = $query-param('page'); my %rms = $self-run_modes(); return $self-$rms{$runmode}; This returns this error: syntax error at Supersite.pm line 694, near $rms{ syntax

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-14 Thread Cees Hek
On Mon, 14 Mar 2005 11:57:42 -0500, Michael Peters [EMAIL PROTECTED] wrote: If you specified the values as code refs, then you would have to do something more than what I was telling you. If you didn't use code ref's, but just the names of the methods as the values, then the following should

[cgiapp] Calling run mode without knowing name of sub

2005-03-11 Thread Geoffrey G. Hankerson
I hope this is an easy question that I am just missing. I want to call a different run from another run mode, but I don't know the name of the subroutine to call, I just know the key from the $self-run_modes hash (but not the value) So I know how to get the key: my $runmode =

Re: [cgiapp] Calling run mode without knowing name of sub

2005-03-11 Thread Geoffrey G. Hankerson
my $runmode = $query-param('page'); my %rms = $self-run_modes(); return $self-$rms{$runmode}; gives me: syntax error at Supersite.pm line 684, near $rms{ syntax error at Supersite.pm line 685, near } Where did I go wrong? Michael Peters [EMAIL PROTECTED] 03/11 4:12 pm Geoffrey G.