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' }(); };
In reply to Re: Interesting CGI Problem...
by kiat
in thread Interesting CGI Problem...
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |