my $sth = $dbh->prepare( "SELECT alpha FROM main WHERE alpha LIKE '%$search_ip %'" ); $sth->execute(); my ($complete_match) = $sth->fetchrow_array; #### $template->param(cm => $complete_match); print $CGI->header( ); print $CGI->title("returned data!"); print $template->output; #### HTML::Template::param() : attempt to set parameter 'cm' with a scalar - parameter is not a TMPL_VAR! at /var/www/asd/www.pl line 60