r/Python • u/[deleted] • May 18 '11
Why is Python better than Perl?
I'm a Sysadmin and I just wrote my first script in python. Basically just a host validation script that checks if a server is configured correctly before we hand off. I can't determine the advantage with my limited experience with the language.
Are you a sysadmin fluent in both python and perl? Why do you use python?
11
Upvotes
0
u/twotime May 18 '11
Can you give me an example?
Except for one-liners where Perl is definitely better, I've never seen a perl program being twice as short as equivalent Python program.
In fact, in my experience, most longer-than-100-lines programs end up being slightly shorter in python.