good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: how to call perl-cgi from another perl-cgi?by holcapek (Sexton) |
on Nov 07, 2006 at 09:48 UTC ( [id://582596]=note: print w/replies, xml ) | Need Help?? |
Can you access "only" the URL of the second CGI script or oven the script itself (on the filesystem)? In the first case, you should call that script using LWP::UserAgent within the body of the first script, and then parse the output of HTTP response. In the latter case, you can call the second script using system functionlike this: system "script2.cgi arg1=val1 arg2=val2 var3=val3" Depending on what you're trying to achieve, you might also consider using more powerful tools like SOAP::Lite.
In Section
Seekers of Perl Wisdom
|
|