3 ms·
I'm reminded of the old joke, "python is executable pseudocode, while perl is executable line noise." But seriously, I've got some battle scars from the perl d
by etrain 12y ago
I'm reminded of the old joke, "python is executable pseudocode, while perl is executable line noise."
But seriously, I've got some battle scars from the perl days, and hope not to revisit them. Honestly, there's very little I find I can do with perl and not python, and it's just as easy to express (if not quite as concise) and much simpler to maintain.
But, use the tool that works for you!
- collyw 12y agoI use Python and Django most of the time, and its true, you can do pretty much the same thing in each language. But for quick hacky stuff manipulating the filesystem a lot, Perl has many more features built into the language. Things like regex syntax, globing directories, back ticks to execute Unix commands, and the fact you can use it directly from the command line as a one liner. You can do all these (except the last one?) in Python, but Perl is quicker.
- vram22 12y ago>But for quick hacky stuff manipulating the filesystem a lot, Perl has many more features built into the language. Things like regex syntax, globing directories, back ticks to execute Unix commands All good points. >you can use it directly from the command line as a one liner. You can do all these (except the last one?) in Python You can use Python from the command line too, but Perl has more features for doing that, like the -n and -p flags. Then again, Python has the fileinput module. Here's an example: http://jugad2.blogspot.in/2013/05/convert-multiple-text-files-to-pdf-with.html http://jugad2.blogspot.in/2013/05/convert-multiple-text-file...