in reply to running a Perl script with options via HTML

It looks like you are trying to pass command line options via HTTP/CGI which will not work. You can pass parameters using hidden fields in your HTML form:
<form action="http://XXX/XXX/XXX/add-hosttest.pl" method="post"> <input type="hidden" name="server" value="server_name"> <input type="hidden" name="username" value="my_username"> <input type="hidden" name="view" value="view_name"> <input type="submit" name="sub" value="Run this!"> </form>
Then, in your Perl script you can access them using the CGI module:
use CGI; my $q = CGI->new; my $server = $q->param('server'); my $username = $q->param('username'); my $dnsview = $q->param('view');

Replies are listed 'Best First'.
Re^2: running a Perl script with options via HTML
by tronmason (Initiate) on Mar 24, 2014 at 18:06 UTC
    Thank you Tangent! You set me straight.