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

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

by exilepanda (Pilgrim)
on Jan 22, 2016 at 03:47 UTC ( #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
Node Status?
node history
Node Type: note [id://1153342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-02-22 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?