Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Can I call a CGI from another CGI?

by eserte (Deacon)
on Dec 27, 2007 at 23:54 UTC ( #659274=note: print w/replies, xml ) Need Help??


in reply to Can I call a CGI from another CGI?

You have some options. If the CGI script lives on the same machine, then you can call it directly using system() or `...`. It would be even nicer if the script could be refactored into a module/script combo, then you can "use" it and just call functions or methods. If the CGI is on another host or must be called via HTTP, then you can use LWP::UserAgent.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://659274]
help
Chatterbox?
[usemodperl]: greetings
[usemodperl]: question
[usemodperl]: perldoc -v 'ARGV' works but perldoc -v "STDIN' does not, but they are both filehandles. is there a perldoc for STDIN?
[usemodperl]: (typo not withstanding :)
usemodperl thinks about loose coupling...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-06-19 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (114 votes). Check out past polls.

    Notices?