Linked by David Adams on Tue 14th Jul 2015 23:21 UTC
Original OSNews Interviews From Linux Voice: "Perl 6 has been 15 years in the making, and is now due to be released at the end of this year. We speak to its creator to find out what’s going on."
Thread beginning with comment 614086
To read all comments associated with this story, please click here.
Why perl?
by project_2501 on Wed 15th Jul 2015 08:21 UTC
project_2501
Member since:
2006-03-20

It's 2015.

Languages are mostly fast enough. Loads are portable. Many are general purpose enough.

So given these luxuries .. Why would you not use a language that was easy to learn, easy to code, easy to read, easy to explain?

Niche stuff - sure use assmebler or C or whatever.

What's the reason to use perl? It doesn't have a monopoly on regex.

Reply Score: 5

RE: Why perl?
by Wondercool on Wed 15th Jul 2015 09:00 in reply to "Why perl?"
Wondercool Member since:
2005-07-08

I can only speak from a personal point of view - I still code (professionally) in Perl from time to time.

I just love the language, mostly because there are 1000s of (perfectly good) ways to get the same thing done. That means that your own style and expression of coding are more important than in other languages.

When I started coding in Perl I was cursing it like anyone else, but I have come to appreciate the flexibility of the language and its versatility. For instance, it's quite an achievement that Perl supports Object Oriented Programming with a minimal change to the language.

I actually really like the language: hashes and arrays our of the box with all the manipulation functions, auto-vivification, interpolation of strings, file handling. Yes you can screw it up the readability royally and the language requires discipline but at least everything is possible.

I also like the gigantic library of useful code called CPAN and the extremely knowledgeable and friendly Perl community. See www.perlmonks.org

And I also really like the really good builtin documentation (perldoc), character and language support, package managers and mostly the builtin debugger.

It's just awesome!

Reply Parent Score: 7

RE[2]: Why perl?
by cfgr on Wed 15th Jul 2015 12:00 in reply to "RE: Why perl?"
cfgr Member since:
2009-07-18

I just love the language, mostly because there are 1000s of (perfectly good) ways to get the same thing done. That means that your own style and expression of coding are more important than in other languages.

That's funny as it's the complete opposite of the Zen of Python: "There should be one-- and preferably only one --obvious way to do it."
https://www.python.org/dev/peps/pep-0020/

It's funny because Perl and Python are languages that have very similar use cases but have a very distinct ideology and approach.

I personally prefer Python's way. The expression is in the structure of your data and the architecture built around it, not in the code that is derived from it. Get your data structures right and the code should write itself.

That's nice about having the choice. We're all different and what doesn't work for me, might just work all the better for you. So let Perl flourish!

Edited 2015-07-15 12:02 UTC

Reply Parent Score: 5

RE[2]: Why perl?
by Bill Shooter of Bul on Wed 15th Jul 2015 14:05 in reply to "RE: Why perl?"
Bill Shooter of Bul Member since:
2006-07-14

I just love the language, mostly because there are 1000s of (perfectly good) ways to get the same thing done. That means that your own style and expression of coding are more important than in other languages.


This is why I never want to use it for anything that anyone else will ever contribute to. Everyone has their own style and in perl they are greatly exaggerated and its difficult to get people to switch

Yes you can screw it up the readability royally and the language requires discipline but at least everything is possible.


Yes, I agree. And yes its difficutl to get more than a few people to share the required discipline.

Reply Parent Score: 3

RE[2]: Why perl?
by Delgarde on Wed 15th Jul 2015 21:22 in reply to "RE: Why perl?"
Delgarde Member since:
2008-08-19

I just love the language, mostly because there are 1000s of (perfectly good) ways to get the same thing done. That means that your own style and expression of coding are more important than in other languages.

Which is funny, because I (and most of my colleagues) regard that as one of it's biggest weaknesses. Too many ways to do the same thing, so that unless you're an expert in all of them, it's all but impossible to maintain code written by someone else according to their own personal style and expression.

I actually really like the language: hashes and arrays our of the box with all the manipulation functions, auto-vivification, interpolation of strings, file handling. Yes you can screw it up the readability royally and the language requires discipline but at least everything is possible.


It's been a long time since most of those features were considered to be anything more than *absolute minimum* functionality for any popular scripting language.

Reply Parent Score: 3

RE: Why perl?
by sergio on Wed 15th Jul 2015 17:30 in reply to "Why perl?"
sergio Member since:
2005-07-06

Availability and compatibility. It's very useful today for all unix admins.

I still use Perl because it's installed by default in almost all unix flavors (even the very old ones).

If I create a Perl script I know it will run in Solaris, AIX, HP-UX and Linux without the need of installing anything. That's a bless if you support heterogeneous unix environments.

Python is very popular in the Linux world and It's a pretty language yes, but it's not so common in the Unix world. I don't like Perl, but It saved my ass so many times.

Reply Parent Score: 4