in reply to Interesting CGI Problem...
After you got it to work, consider changing your 'if' and 'elsif' to:
my $query = get_param('node') || 'default'; my %nodes = ( default => \&default, news => \&news, records => \&records, quests => \&quests, help => \&help, _err => \&invalid ); eval { $nodes{ exists $nodes{$query} ? $query : '_err' }(); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interesting CGI Problem...
by edan (Curate) on Aug 29, 2004 at 06:34 UTC | |
by kiat (Vicar) on Aug 29, 2004 at 08:21 UTC | |
|
Re^2: Interesting CGI Problem...
by dragonchild (Archbishop) on Aug 30, 2004 at 12:17 UTC | |
by kiat (Vicar) on Aug 30, 2004 at 14:00 UTC |