use CGI; my $q = CGI->new(); my $age = $q->param('age'); my $login = $q->param('login'); if ($age) { # do whatever } if ($login) { # do whatever }