Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Calling different methods based on a CGI parameter

by ysth (Canon)
on May 21, 2008 at 18:11 UTC ( #687816=note: print w/replies, xml ) Need Help??


in reply to Re: Calling different methods based on a CGI parameter
in thread Calling different methods based on a CGI parameter

you can use variables as sub names
Or method names:
my $method = "s" . $name; $object->$method(@args);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://687816]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-10-03 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?