Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Recommendation: CGI for a remote procedure call

by BernieC (Pilgrim)
on Apr 08, 2019 at 18:24 UTC ( [id://1232308]=note: print w/replies, xml ) Need Help??


in reply to Re: Recommendation: CGI for a remote procedure call
in thread Recommendation: CGI for a remote procedure call

I have no problem with alternatives! My only problem was that all of the aternatives in the "old" ALTERNATIVES were all too ambitious. I'll look at mojolicious::Lite and the others mentioned.. It has been more than a decade since I messed with CGI.pm and so I'd have to learn anything that I decided to use.

I can't tell much about mojolicious::Lite because the docs seem to be focusing it on a subset of mojolicious, and I'm not really interested in learning a big "frameworkd" just so I can use a mini-package that only implements part of it.

CGI::LITE and CGI::SIMPLE both look like just what I was looking for! The main difference I can see {for my purposes} is that ::SIMPLE includes the calls to set up simple HTML responses. I vaguely remember that I could/did do "my own" HTML responses and it was pretty simple {and mostly I didn't bother with CGI's html-construction stuff}, but I don't remember how any more so I might swing towards ::SIMPLE and let it handle the headers and such.

Thanks!

  • Comment on Re^2: Recommendation: CGI for a remote procedure call

Replies are listed 'Best First'.
Re^3: Recommendation: CGI for a remote procedure call
by haukex (Archbishop) on Apr 08, 2019 at 19:24 UTC
    I'm not really interested in learning a big "frameworkd" just so I can use a mini-package that only implements part of it

    That's not really the case here... Mojolicious::Lite is part of the Mojolicious distribution, and instead of only implementing "parts" of the full framework, it just makes the full framework easier to use to write small applications. See Mojolicious::Guides::Tutorial.

    I don't remember how any more so I might swing towards ::SIMPLE and let it handle the headers and such.

    Note that the HTTP headers are quite different from HTML generation, and it's usually a good idea to use a module to handle the HTTP headers. As for HTML generation, you might be interested in HTML::Tiny, as mentioned in CGI::Alternatives, if you want to go that route instead of using a templating engine such as Template::Toolkit.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-19 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found