in reply to CGI question: elegant way to have three form image buttons doing different things?
I'm not sure this is really any better than what you've got, though. Still, hth.my %act = ( 'view.x' => \&view , 'invite.x' => \&invite ); foreach ($query->param()) { $act{$_}->() if defined $act{$_}; } #danger, will robinson: I don't think $query->param() exists in old ve +rsions of cgi.pm
Andy.
|
|---|