Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to pass form data from a CGI script to its child process?

by aaron_baugher (Deacon)
on Aug 25, 2012 at 10:12 UTC ( #989712=note: print w/ replies, xml ) Need Help??


in reply to How to pass form data from a CGI script to its child process?

There's another option: you could use a module like LWP::UserAgent in ScriptA.pl to talk to ScriptB.pl through its URL. That way you can pass the parameters just as a browser would pass them, and ScriptB.pl doesn't have to be changed at all. ScriptA.pl just has to take the output of ScriptB.pl and do whatever you had in mind for it.

Aaron B.
Available for small or large Perl jobs; see my home node.


Comment on Re: How to pass form data from a CGI script to its child process?
Re^2: How to pass form data from a CGI script to its child process?
by Nocturnus (Sexton) on Sep 05, 2012 at 07:54 UTC

    Thank you very much for your reply.

    Your solution has the advantage that script B.pl even could be on another server than script A.pl. But in this case, I don't need this feature, so the disadvantage of being "expensive" in networking terms outweighs the advantage.

    Therefore, I have chosen another solution (see above). Nevertheless, I have voted up your proposition because it surely will work and has an additional interesting feature.

    Regards,

    Nocturnus

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2014-08-22 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (161 votes), past polls