Perl and Python, a practical side-by-side example.

Paddy paddy3118 at googlemail.com
Sat Mar 3 17:02:18 CET 2007


On Mar 2, 10:44 pm, "Shawn Milo" <S... at Milochik.com> wrote:
> I'm new to Python and fairly experienced in Perl, although that
> experience is limited to the things I use daily.
>
> I wrote the same script in both Perl and Python, and the output is
> identical. The run speed is similar (very fast) and the line count is
> similar.
>
> Now that they're both working, I was looking at the code and wondering
> what Perl-specific and Python-specific improvements to the code would
> look like, as judged by others more knowledgeable in the individual
> languages.

Hi Shawn, there is a web page that gives examples from Perl's
Datastructures Cookbook re-implemented in Python. It might be of help
for future Python projects:
  http://wiki.python.org/moin/PerlPhrasebook

- Paddy.





More information about the Python-list mailing list