in reply to Re^6: Perl and Mysql Queries
in thread Perl and Mysql Queries

 Undefined subroutine &main::param called

That means CGI::param wasn't imported into main::param. It looks for main::param but can't find it. Make sure you import CGI::param with 'use CGI qw/:standard/;' or however you want. You might also consider using the object oriented style like.

use CGI: my $q = CGI->new; my $var = $q->param('param_key');