4 ms·
It also seems like the core perl developers did not want to acknowledge the importance of web/html. They did not add support for encoding/decoding html entitie
by silvestrov 3y ago
It also seems like the core perl developers did not want to acknowledge the importance of web/html.
They did not add support for encoding/decoding html entities or URLs were added. No standard modules for this.
No easy method of making html pages from a URL request besides running as CGI.
This made perl lose to php which made it very easy to make a simple "Hello, world" page.
php would never had any traction if perl developers had made web support high priority.
- ykonstant 3y agoDoes Perl now support web development and if so, to what extent? Can you now do with Perl 5 what you can do with PHP?
- vague_irssi 3y agoNot like php, no. But perl has loads of excellent web frameworks(mojolicious, dancer, et al) and there is webperl.js which tries to bridge the gap to an extent, though I don't know if anyone uses it and what the quality of it is
- thesuperbigfrog 3y agoPerl Mason does web templating similar to PHP: http://www.masonhq.com/ http://www.masonhq.com/ For years Amazon.com used Perl Mason.
- btilly 3y agoIt is ludicrous to claim that Perl didn't support web development. From Amazon to eToys to Citysearch to Stamps.com, big dot coms were all based on Perl. Big PHP shops like Facebook, and PHP projects like WordPress, came in a later development generation for the simple reason that PHP made it easy to get started on shared webhosting.
- justinator 3y ago>They did not add support for encoding/decoding html entities or URLs were added. It's certainly not in core, but look how PHP flubbed that up (html_entity_decode, htmlspecialchars_decode, htmlentities). >No standard modules for this. Obviously there are, https://metacpan.org/pod/HTML::Entities https://metacpan.org/pod/HTML::Entities The changelog goes back only to 1998, where it states, 2.14 1998-04-01 HTML:: modules unbundled from libwww-perl-5.22 That wasn't a hurtle to developers, but certainly to end users who did want to just throw a php script up and have it work.
- silvestrov 3y ago1998 is too late, it was all over. PHP was used on over 50k sites by mid-1997. https://ifj.edu.pl/private/krawczyk/php/intro-history.html https://ifj.edu.pl/private/krawczyk/php/intro-history.html Netscape Navigator was released late 1994, so this was the point of time where perl developers should have seen the light.
- btilly 3y agoBS. CGI.pm was part of the Perl core in 1997. And Perl was the language that dominated the dot com boom. The thing that PHP did better than Perl was the ability to be set up on shared web hosting. Mind you, it did that mostly by not acknowledging all of the security holes that it had which allowed one user access to what should have been private for another user. But shared hosting providers had a population of people who wanted to use PHP, were forgiving of major security flaws (which PHP had many of), and would pay money. Meanwhile Perl went the route of doing things right, and being much more secure. Which, even though it feels important to good developers, is bad for marketing. It was a classic Worse is Better situation. See https://www.dreamsongs.com/RiseOfWorseIsBetter.html https://www.dreamsongs.com/RiseOfWorseIsBetter.html if you're not familiar with that concept. And, in the end, the commodity wins. So in the mid-2000s, PHP did catch up and beat Perl.