my $query = CGI->new(); if ($query->param( "button" ) eq 'first') { display_first( $query ) }