Re:Why does OpenBSD still include Perl in its base installat...
by fpoling on Saturday May 30, 2020 @08:21AM
(#23360645)
It is interesting that PHP is ruled out as insecure. I am not sure that for system administration tasks modern PHP is particularly worse than Perl and these days more people know PHP than Perl.
[ Parent
| on HN ]
Re:Why does OpenBSD still include Perl in its base installat...
by dtech on Saturday May 30, 2020 @09:09AM
(#23360907)
Yeah, quite weird. PHP as a webserver has a large amount of known language design things which decreased security (most have been removed over the years afaik), but for scripting? I can't think why it's particularly insecure compared to Python or Perl.
Re:Why does OpenBSD still include Perl in its base installat...
by acomjean on Saturday May 30, 2020 @09:30AM
(#23361035)
perhaps its built in web server? python has that too though.
Re:Why does OpenBSD still include Perl in its base installat...
by captn3m0 on Saturday May 30, 2020 @08:30AM
(#23360691)
Yeah, for scripting, PHP can easily be more readable, especially because of its amazing (sometimes confusing) Standard library.
It lets you parse INI files in a single call for eg.
Re:Why does OpenBSD still include Perl in its base installat...
by tankenmate on Saturday May 30, 2020 @09:24AM
(#23360989)
As does Perl if you use Config::Inifiles or Config::INI::Reader (depending on whether you want a full blown solution or just a quick INI file => hash solution).
Re:Why does OpenBSD still include Perl in its base installat...
by aganame on Saturday May 30, 2020 @09:15AM
(#23360936)
No, it's not interesting at all. PHP is fairly good at web things, but that's it.
Re:Why does OpenBSD still include Perl in its base installat...
by mtnGoat on Saturday May 30, 2020 @10:10AM
(#23361284)
i dunno, i wrote PHP scripts for the CLI that run a $100m+ business and execute many millions of times per day. PHP is great for things not web-related, i think many just didnt take the time to learn.
Re:Why does OpenBSD still include Perl in its base installat...
by nineteen999 on Saturday May 30, 2020 @10:29AM
(#23361428)
Does PHP have anything approaching CPAN? That is one of the key reasons I still dust off Perl for quick and dirty things from time to time, as well as the compact and accessible regex syntax.
Re:Why does OpenBSD still include Perl in its base installat...
by smacktoward on Saturday May 30, 2020 @10:35AM
(#23361470)
Re:Why does OpenBSD still include Perl in its base installat...
by aganame on Wednesday June 03, 2020 @07:30AM
(#23402215)
What specifically do you think makes PHP especially great for that?
Re:Why does OpenBSD still include Perl in its base installat...
by acomjean on Saturday May 30, 2020 @09:25AM
(#23360996)
I use php for small scripts that need to read csv and database lookup from the command line. It has built ins for these that work without any environment setup which is great sometimes.
Perl has some easy oneliners too. Depending on where I'm working sometimes I don't want to set up an environment.