Python for Perl programmers?
Chris S.
chrisks at NOSPAM.udel.edu
Mon Sep 20 23:46:19 EDT 2004
Markus Dehmann wrote:
> I am using perl for everything, even bigger programs, with objects,
> uh, modules and stuff. I know pretty much every trick in perl and have
> a lot of experience.
>
> But I'd like to try a cleaner language, where you don't have to type
> so much crap to create a class etc. So, I wanna give python a try.
>
> Is there a tutorial that takes all the standard perl things and then
> explains how to do them in python? That would be perfect. Open a file,
> take all the words, put them in a hash, do something with them, print
> the result in a formatted way, write it to a new file etc. Create a
> class that downloads newsgroups, etc. Things like that.
>
> I don't need long explanations, but just the perl code and the
> corresponding python code. Maybe that even helps seeing: ah, python is
> much cleaner, or shorter, or whatever.
>
> I mean, if I want to learn French and I already know a lot about
> languages, it's probably good not to learn all the grammar, but just
> to take an English book and the French translation, and learn from it.
> I want to do the same to learn python.
>
> Thanks for every hint!
> Markus
I've read that Ruby is actually more akin to Perl than Python. From a
Ruby wiki, "[Matsumoto] chose the name to reflect the language's Perl
heritage". Granted, Python definitely deserves your attention, but if
you're a die-hard Perl user, you may also want to take a look at Ruby.
More information about the Python-list
mailing list