Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by derby (Abbot)
on Aug 25, 2012 at 12:58 UTC ( #989719=note: print w/ replies, xml ) Need Help??


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

If you wrote modulinos instead of scripts or *better* used a framework like CGI::Application or Dancer or Mojolicious, you could get away with keeping everything in one process. While I *love* the unix way and pipelining, I don't think it's a good approach for *most* web programming tasks.

-derby


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 08:17 UTC

    Thank you very much for your reply.

    Indeed, I did not know about modulinos. This technique is very interesting. It seems that it resembles the way I have done it now (see above).

    Regarding the frameworks: I admit that I don't like them very much because most of them are not flexible enough for what I want to do, or the learning curve is very steep. Every time I tried a framework or read the documentation of a framework, I have come to the conclusion that it would take more time to learn the tricks to break its limitations than the framework would save, or that the framework's philosophy was not mine.

    To make a long story short: Frameworks are not appropriate for me. I am very happy with putting my well-tested methods in several modules and use these modules from my applications.

    By the way, the same applies for the template systems. I have written my own template system which might not be appropriate for the mass market, but is very simple and just does what I want, thereby keeping maximum flexibility (i.e. I can write pure perl code without any restrictions in my HTML pages).

    Since your answer contains some very interesting hints, I have voted it up, although I have chose another solution.

    Regards,

    Nocturnus

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-21 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls