palette has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using a cgi. I have some condition and based upon that I want to call different methods in the cgi file.
Eg:
How can i call the method dynamically
I am using a cgi. I have some condition and based upon that I want to call different methods in the cgi file.
Eg:
I will get the table1, table2 value from cgi_upload_table1 { } _upload_table2 { }
$tablename=cgi->param('tablename'); _upload_$tablename(args);
How can i call the method dynamically
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Calling different methods based on a CGI parameter
by Corion (Patriarch) on May 21, 2008 at 11:45 UTC | |
Re: Calling different methods based on a CGI parameter
by wfsp (Abbot) on May 21, 2008 at 11:46 UTC | |
by palette (Scribe) on May 21, 2008 at 12:23 UTC | |
by wfsp (Abbot) on May 21, 2008 at 12:52 UTC | |
Re: Calling different methods based on a CGI parameter
by moritz (Cardinal) on May 21, 2008 at 12:46 UTC | |
by ysth (Canon) on May 21, 2008 at 18:11 UTC |
Back to
Seekers of Perl Wisdom