Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Perl Command Prompt while executing perl script through cgi

by Anonymous Monk
on Sep 25, 2013 at 06:13 UTC ( #1055616=note: print w/ replies, xml ) Need Help??


in reply to Perl Command Prompt while executing perl script through cgi

Hi,

Why are you calling a Perl script from a perl script?

Ectract the workings of the second script and put them into the CGI script as a subroutine.

J.C.


Comment on Re: Perl Command Prompt while executing perl script through cgi
Re^2: Perl Command Prompt while executing perl script through cgi
by TJPride (Pilgrim) on Sep 25, 2013 at 20:02 UTC
    Because the inner process could theoretically die, and you don't want the outer process to die too, and/or you don't want to worry about spill-over from one instance of the inner process to the next (even if it's just memory usage). I have one client that does long, complicated data imports, and I use a master script to call scripts that process individual data sets. So it's not necessarily a bad approach.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-10-26 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (151 votes), past polls