Live data from Hacker News

Perl 5.17.6 is now available

nntp.perl.org

61–62 of 62 posts

Re: Perl 5.17.6 is now available

#61
post #15

I'd be genuinely interested in reasons why I should learn Perl? I've been hacking away at some Perl interfaces lately but finding it difficult. It seems like a big language (I'm reading Perl Programming, which is certainly a big book). So rather than just hacking away, is there a good reason I should learn the language properly and push through "Perl Programming" or say learning Ruby, Python or golang really well. Wi…

> I'd be genuinely interested in reasons why I should learn Perl?

Perl 5 is handy, putting oft-used tools within arms reach. There are a lot of useful and mature Perl 5 modules available (at CPAN). The language has some warts you'll hear folks complain about. Perl 5 is considered a power tool for GNU/Linux & unix admins. Perl 5 infrastructure is great. Community support is great. The docs are great. For small scripts that involve text manipulation (with regexes) and working with the OS and with other scripts, it's very tough to beat Perl 5. The Perl 5 goals appear to me to be: be handy (sometimes providing more than one way to do it), be useful (bending the rules sometimes is ok, but try not to wreck up the place), and try to do what I mean.

Python is easy to pick up, is pretty uniform, and has a nice repl. You'll often find your Python code working correctly the first time you type it. You should be able to learn the language itself in a very short amount of time. The Python goals appear to me to be: be easy to learn, be mostly uniform. For more, open a repl and type `import this`.

The Perl 5, Python, and Ruby communities are somewhat different from eachother.

> Will Perl remain relevant in 15 years time?

Can't answer that, but I don't think Perl 5 is going anywhere for a while. Too much stuff runs on Perl 5.

Re: Perl 5.17.6 is now available

#62
post #54
post #47

Earlier quoted context omitted.

> the values it places on hacked up gimmicks (under the > guise of "more than one way to do things" and "see! > it's a one liner!") is a large part of this. I'm curious where there is official documentation of Perl as a language putting emphasis on "See! It's a one-liner!" Sure Perl has things like Perl Golf[1], but I could equally point you to The International Obfuscated C Code Contest[2]. That doesn't prove that C…

I am wondering why it is as it is. I think it may be because of perls abundance of short cryptic symbols that people feel somehow "proud" to 1) know what "while( ){print if($.==2 || $& && !$x++); $.=0 if (/^--+$/)}" does and 2) to make it even shorter. Because with )(!§&/$?(=)% with hell a lot of meanings you could write entire perl scripts based on special characters. A good example is http://www.nntp.perl.org/group…

One liners are an (extreme!) optimisation and programmers feel quite proud when they able to optimise code :)

And it's not restricted to Perl: http://news.ycombinator.com/item?id=4906370

> Then again i've seen a lot broken, half-tested and unmaintained CPAN modules as well.

You also get this in PyPi, Gems, NPM, etc. Just more proof that Sturgeon's Law exists.

Post reply on HN