If im not wrong, CGI scripts usually get the corresponding form values at their STDIN, not ARGV. But even with the above script, you are not reading @ARG anywhere. Just specifying values as command-line parameters doesnt populate %input. Perl doesnt show that much of magic yet!!
As others have suggested, you are much better off using the CGI module.