You certainly have a good point about using a hash as a dispatch table, but I utterly fail to understand why you would need to use eval. How about:
my $dispatch = $nodes{$query} || $nodes{_err}; $dispatch->();
Or if you really like to put everything in one line:
( $nodes{$query} || $nodes{_err} )->();
In reply to Re^2: Interesting CGI Problem...
by edan
in thread Interesting CGI Problem...
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |