my $selectedName = param('$unit_name');
$selectedName will always be empty unless the CGI/HTTP request literally passes a parameter name of $unit_name including the dollar sign.
You don't need the single quotes if you want to simply pass a variable:
my $selectedName = param($unit_name);
In reply to Re: Passing perl variable as input name?
by Corion
in thread Passing perl variable as input name?
by RobRobson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |