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 ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found