3 ms·
Ok, I was sort of hoping for a more concrete example. Do you mean like not being able to use 'unless' constructs? Not having regular expression operators? No
by Goladus 16y ago
Ok, I was sort of hoping for a more concrete example. Do you mean like not being able to use 'unless' constructs? Not having regular expression operators? Not being able to reference default variables like $_? What is an example of doing it "the other way"?
I can usually find several different ways to do anything in Python, too. In fact I find this is true even for trivial things. For example, here are 4 ways to parse /etc/passwd and return a list of objects such that you can reference each value by the field name, for example:
>>> passwd_data('/etc/passwd')[5]['shell']
'/bin/bash'
4 ways: http://pastebin.com/wPa5q7Mc http://pastebin.com/wPa5q7Mc