News for hackers. Stuff that matters.
Re:Perl is dying by matt-attack on Monday October 07, 2019 @11:11AM (#21181771)
What’s the replacement for generating HTML fragments?

And what’s the replacement for collecting params?

I’ve used CGI.pm for both of those things.

Re:Perl is dying by ergothus on Monday October 07, 2019 @11:22AM (#21181905)
I've not used Perl as my primary language in over a decade, but it remains my favorite.

I never used CGI.pm for generating HTML...the idea of using functions for tags seemed unneccusarily dense when HTML is a string and Perl is well suited to handling strings. Later I shifted to templating modules like HTML::Template and Template::Toolkit. I assume those are long defunct, but vfb the point is that they offered better functionality than CGI.pm

For parsing params, yes, I used CGI.pm.

Re:Perl is dying by pfortuny on Monday October 07, 2019 @11:29AM (#21181996)
You may probably want to take a look at Dancer. http://perldancer.org/

I have not used it but I have heard it is as lightweight as you want (in the sense that it may be huge but you only need to use the basics if that is all you need).

But it has been quite a while since I last used Perl for cgi.

Re:Perl is dying by petre on Monday October 07, 2019 @12:59PM (#21183139)
Mojolicious for almost everything web related. Minimal dependencies. We also write lightweigt event loops with it.

http://mojolicio.us