Re:Perl is dying
by dumbmatter on Monday October 07, 2019 @11:53AM
(#21182338)
...which says
> Warning you probably don’t want to use CGI for modern web development, see Why Not to Use CGI.
Re:Perl is dying
by user5994461 on Monday October 07, 2019 @12:15PM
(#21182594)
It's just a trivial example to show what the languages look like with variables, loop and print.
CGI is not used to deploy web applications anymore, I am aware of that. That's a far leap from saying the module is "broken, bad and wrong".
Another commenter pointed out that there are typo in the example so it doesn't work.
> The CGI example is straight copy/pasted from the official Perl guide
I don't know any official Perl guide? This is a blog post.
The illustration image (I gather this is what confused you) is from a 1998 book...
It's also the only example that could possibly make PHP look good, because it's the problem domain PHP was invented for. Nobody is innovating on Perl's CGI so it's not going to make use of any improved language features from the last 20 years.
The CGI example is straight copy/pasted from the official Perl guide, November 2018. https://www.perl.com/article/perl-and-cgi/