in reply to CGI::Tiny versus undefined parameter/form field
I've been trying to "upgrade" one of my scripts from the now-outdated (so I am told) CGI.pm to a more modern implementation that I had hoped would be mostly a "drop-in" replacement for it: CGI::Tiny.
What portion of the CGI::Tiny documention said to you "drop-in replacement"? Looking at that documentation, compared to my CGI.pm experience, it seems a completely different philosophy.
Something like CGI::Simple, on the other hand, specifically says as the first sentence of the DESCRIPTION: "CGI::Simple provides a relatively lightweight drop in replacement for CGI.pm." It has all the parameter-handling interface, without any of CGI.pm's poorly-designed and deprecated HTML-generating code.
CGI::Alternatives does a really good job of showing you an old style CGI+HTML-from-CGI.pm, then showing you the equivalent application in CGI.pm+TemplateToolkit (which would be virtually identical to CGI::Simple + Template Toolkit if you wanted to go down that path), and then in Mojolicious::Lite, Mojolicious "full", and Dancer2.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Tiny versus undefined parameter/form field
by Polyglot (Chaplain) on Dec 12, 2022 at 15:29 UTC | |
by pryrt (Abbot) on Dec 12, 2022 at 15:41 UTC | |
by Polyglot (Chaplain) on Dec 12, 2022 at 15:56 UTC | |
by marto (Cardinal) on Dec 12, 2022 at 16:01 UTC | |
by Polyglot (Chaplain) on Dec 12, 2022 at 16:27 UTC | |
|