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

Re^6: How a web server sending data to a CGI perl script ?

by exilepanda (Friar)
on Jan 22, 2016 at 03:47 UTC ( [id://1153342]=note: print w/replies, xml ) Need Help??


in reply to Re^5: How a web server sending data to a CGI perl script ?
in thread How a web server sending data to a CGI perl script ?

Thanks and I am still reading.... I can feel something and it's insightful indeed. Would be glad to hear more from your advise though :

1. Do you think rather send out the data to an external script, import the external code into the server and run it is a better approach (eg. require "script.pl") ?

2. Can you tell if when a web server claims it supports a certain language, it does have to implement something ( not just command line ) to prepare the environment ( meta ) variables for that particular language ?

Replies are listed 'Best First'.
Re^7: How a web server sending data to a CGI perl script ?
by Anonymous Monk on Jan 22, 2016 at 07:38 UTC

    1. Do you think rather send out the data to an external script, import the external code into the server and run it is a better approach (eg. require "script.pl") ?

    Sure its a better approach (hint CGI::Compile/ ), for perl, its called PSGI as implemented by Plack

    2. Can you tell if when a web server claims it supports a certain language, it does have to implement something ( not just command line ) to prepare the environment ( meta ) variables for that particular language ?

    What "web server" are claiming what kind of support?

    Yeah, question is kinda vague, claimed support can be anything, from what mod_perl does (full control) to what to merely support for better-than-CGI like WSGI, PSGI, Rack, JSGI, SCGI...

      Hmm... think that I got the starting point now. The interface of CGI::Compile looks good to me. Thanks again! and much appreciated for all your help! =)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found