you can use variables as sub namesOr method names:
my $method = "s" . $name; $object->$method(@args);
In reply to Re^2: Calling different methods based on a CGI parameter
by ysth
in thread Calling different methods based on a CGI parameter
by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |