Comment Re:Perl is more expressive (Score 1) 192
Ok, in this thread there are already C++, Ruby, and Perl 6 versions of your snippets, so I'll add the Python ones.
@Lines = sort { $a->{Name} cmp $b->{Name} } @Lines;
lines.sort(lambda a, b: a.name < b.name)
or
lines.sort(key=lambda o: o.name)
@Files = <c:/Windows/*.exe>;
from glob import glob
files = glob("c:/Windows/*.exe")
I think a good analogy would be Perl is Finish, Python is Esperanto. When you have hundreds of thousands of LoC to maintain, I guess a more direct and unambiguous language is preferred.
It occurred to me that perhaps Perl is an attempt to seduce the computer... too bad it will take some time before it can appreciate language nuances...