3 ms·
Sorry can't use Python instead of Perl. Basically because Python is not Perl. Now if you want to just change a language for the sake of changing it, its Ok. Bu
by kamaal 15y ago
Sorry can't use Python instead of Perl. Basically because Python is not Perl.
Now if you want to just change a language for the sake of changing it, its Ok. But Python and Perl have opposite philosophies. And the actual problem while changing from Python to Perl occurs there.
To me Python looked like Java with a haircut and french beard. That fact simply keeps hovering over me, even in this tutorial all those variable = something.somethingElse.someMethod() thing gives a strong Java vibe .When I used it for the first time, It looked like a language for people who were frustrated with Java but at the same couldn't learn Perl either. It looked like a language designed for such people.
Parsing a program visually hurts my eyes. Especially for large code blocks. Inability to provide easy ways of writing throwaway command line hacks is just not acceptable at all on Unix machine. That's precisely where Perl won over sysadmins during its early days.
Having to bury each statement you suspect under piles of try/catch statements doesn't feel like a scripting language. No multi line lambdas is a major turn off.
Regular expression support looks totally alien and its no way closer to Perl's way $line =~ /<match something>/ and not just that, Matching is just one part. Extraction, substitution et all all part of regular expression operations. Now regexes combined with map/grep functions make parsing a whole lot easier in Perl.
Scoping sucks big time in Python. There is nothing remotely comparable to CPAN.
I don't know which versions to Program in, 2.x or 3.x? There is nothing like Moose and other associated modern perl packages in Python.
Lastly I never needed another C based language for scripting. What I needed was a more extensible language(like Perl6).
Python doesn't serve my scripting needs on Unix. But I agree it has good web frameworks and it may be helpful there.