Perl: the Markov chain saw | |
PerlMonks |
CGI from another scriptby rsiedl (Friar) |
on Sep 02, 2005 at 13:45 UTC ( [id://488647]=perlquestion: print w/replies, xml ) | Need Help?? |
rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I'm attempting to call a .cgi script from another one of my scripts and for some reason it is only recognising the first var I pass to it. i.e. and some_script.cgi is only seeing the results from var blah Anyone got any ideas? Cheers, Reagen Update: I've done a bit more investigating and it appears that the script being called from the original script is using the var's from that original script. i.e. some_script.cgi?blah=foo&larh=bar will pass the vars blah and larh onto the script that some_script.cgi calls... make sense? I havent been able to work out how to prevent that and specify my own when I call the script. Anyone? Here's some code that explains more clearly than I: script1.cgi script2.cgi The only way I can get var1 and var2 to print is by calling script1.cgi?var1=one&var2=two even though I define that in script1 where I call script2.
Back to
Seekers of Perl Wisdom
|
|