in reply to help with getting my perl script to run via web

Sorry bout the first post i am new to this forum. Here it is again and easier to read. :) I am trying to get my perl script to work or be called from the web. That way you don't have to access my linux box to run it. You can just goto a webpage and run it from there. To run my script you do this:
perl push2.pl -i (ip address) -s (tftp server) -c (config file) <enter +>
I have posted my script on my scratchpad and made it public. There is one more thing bout my script. It works fine using the command above via command line. But if i just type:
perl push2.pl
I get this error:
Use of uninitialized value in concatenation (.) or string at push2.pl +line 45. IP ADDRESS: Use of uninitialized value in concatenation (.) or string at push2.pl +line 74. Error: can't resolve "" to IP address at /usr/lib/perl5/site_perl/5.6.1/SNMP_util.pm line 400 Can't bless non-reference value at /usr/lib/perl5/site_perl/5.6.1/SNMP +_Session.pm line 860.
I would like to fix that also. Thanks in advance