Pass arguments to Perl from CGI - TechRepublic
General discussion
September 28, 2001 at 12:22 PM
tymitche

Pass arguments to Perl from CGI

by tymitche . Updated 24 years, 9 months ago

I have a CGI script “start.pl” that collects a bunch of information via a form (i.e. $query->param(‘username’)). Upon SUBMIT I want to reload the “start.pl”, but (in the background), pass the ‘username’ parameter to another script “runme.pl”. Runme.pl will be using the parameter as an argument in a system() call.
I don’t want any of the output from runme.pl to appear my web pages at all.
I tried using the “do”, “eval”, “system” functions but none seem to do what I want. I am able to use “do” to start the other script but cannot figure a way (short of writing to a text file) to pass the parameter on.
Any ideas?

This discussion is locked

All Comments