in reply to Catching the command sent by an Internet Button

Yes, it's trivially easy if you use CGI.pm -- you do it the same way you would with any field:
# the HTML <input type="submit" name="option" value="first option"> # the Perl use CGI; my $q = CGI->new(); my $option = $q->query('option');