Linked by Thom Holwerda on Tue 11th May 2010 23:17 UTC, submitted by PLan
General Development "Lately, the Perl language has had less buzz surrounding it than many other languages and development environments, but Perl is still a key component on the Internet. For this guest post, we asked Jeff Hobbs, Director of Engineering at ActiveState, to weigh in on the topic."
Thread beginning with comment 424064
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: don't really agree
by vivainio on Wed 12th May 2010 20:57 UTC in reply to "RE: don't really agree"
vivainio
Member since:
2008-12-26


Personally I can do more of what I want with a few lines of Perl than the same lines of Python or Ruby.


The amount of characters is not what counts - rather, the amount of time it takes to write/debug the script, and the amount it will take to modify it later.

For some quick code or for analyzing and reporting I'd go with Perl.


Out of curiosity, what aspect of perl makes it preferable to python in this area? Regex support is pretty much the same, so it must be the built in reporting features?

One thing I think makes python preferable to perl even for the "dirty work" is the exception handling. In perl you'll either implement error handling yourself ("or die") or fail without explanation.

Reply Parent Score: 2

RE[3]: don't really agree
by zlynx on Thu 13th May 2010 04:10 in reply to "RE[2]: don't really agree"
zlynx Member since:
2005-07-20

What makes Perl better for me is that I know it really well. I know the keywords, the functions, lots of libraries and CPAN.

I don't know Python or Ruby nearly that well.

That means I can sit down and write 200 lines of Perl that work the very first time.

Admittedly I only did that once and yes it surprised me too. ;)

Reply Parent Score: 2

RE[3]: don't really agree
by antwarrior on Thu 13th May 2010 14:30 in reply to "RE[2]: don't really agree"
antwarrior Member since:
2006-02-11

Perl offers some of the most obscure,obfuscated, beautiful and baffling ways to to write a quick script but I'll be darned if if I knew what I wrote a week from now.


I remember( a long time ago) with four lines of code and between 12 and 20 characters I could change to a high resolution setting for my monitor but it was in assembly. You don't see me advocating it because it's brevity.

Python and Ruby are fair comparisons because a skilled programmer in these languages can produce code just as quickly as a skilled Perl programmer but guess whose program you'll be most likely to understand first time.
Perl just doesn't lend itself to clarity for the short quick script.

Reply Parent Score: 1

RE[4]: don't really agree
by Pr3st00 on Fri 14th May 2010 16:43 in reply to "RE[3]: don't really agree"
Pr3st00 Member since:
2005-12-02

So... someone made bad and undocumented code and that's language's fault??

Reply Parent Score: 1