To view parent comment, click here.
To read all comments associated with this story, please click here.
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. 
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.




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.
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.