Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to how to call perl-cgi from another perl-cgi?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://582596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found