in reply to Using hash values as CGI query types

Ahh, translation is "You want to dynamically pick which method of the CGI.pm object to call, by using the name of the method from a variable."

And what you're asking is how to do the below, which works, in one step:

my $sub_is = $input_html{$key}; start_td $query->$sub_is(-name=>'$key');
Its too early in the morning here, I can't see the better way to do this.

Replies are listed 'Best First'.
Re^2: Using hash values as CGI query types
by Nevtlathiel (Friar) on Jan 28, 2005 at 12:14 UTC
    Thank you! That is just what I need, and now I feel really silly for not thinking of just doing it like this! Sorry for the badly phrased question and thank you for taking the time to decipher it :D