RE: Comparing Regular Expression in Perl vs Python




Thanks Tom for describing perl in very short but very sweet way!

"In a perfect world, you would learn every possible programming
language, then you could always choose the best one for each task. If
you did that, you'd probably write most of your programs in Perl."

-----Original Message-----
From: Tom Phoenix [mailto:tom@xxxxxxxxxxxxxx]
Sent: Thursday, November 29, 2007 4:26 AM
To: JBallinger
Cc: beginners@xxxxxxxx
Subject: Re: Comparing Regular Expression in Perl vs Python

On 11/28/07, JBallinger <ballingerjohns@xxxxxxxxx> wrote:

I recently heard about Python. They claimed that it is easier to learn

and to program in Python than in Perl.

My friends say that Ford is great and Chevy sux. What do you Chevy
people think? I don't think you're really intending to post flamebait,
but you have to realize that this is a *Perl* forum.

Most of my work is relating to transformation of one text file format
to another.
Therefore, I wonder whether anyone has experience doing this in
Python; and does what they claimed is true?

You can transform one text file format to another in pretty much any
competent programming language.

There are very few people who like both Python and Perl. The ones who
prefer Python generally love it; the ones who prefer Perl are just as
ardent. One of the big differences is that Perl has many many defaults,
such as default variables or parameters, which can make programming
simpler. Python is very explicit, with few defaults; that can make it
easier to understand a program at first sight, but in exchange it
generally takes more time to write and maintain your code.

Besides the language itself, it's useful to have libraries of code that
can enhance the language with additional features. Perl is a great
workhorse largely because of CPAN's thousands of modules:

http://search.cpan.org/

In a perfect world, you would learn every possible programming language,
then you could always choose the best one for each task. If you did
that, you'd probably write most of your programs in Perl.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.



.



Relevant Pages

  • Re: Native language versions
    ... : For a general purpose programming language: Probably not. ... Even though this is not Perl, but TeX, I know ... instead of the English commands (TeX ...
    (comp.lang.perl.misc)
  • Recommend an E-book Meeting the Following Criteria (Newbie, Long)
    ... I know several programming languages namely Java, Perl and C in this order ... Now I'm wondering which Python book I should get as there are so many out ... I'd like to mostly concentrate on language features but some pointers ...
    (comp.lang.python)
  • Re: Wondering if you guys would like to comment on this
    ... >>ever tried using someone's highly customized EMACS setup? ... I've had the same experience with perl that he ... problem with any programming language, perl tends to make it worse ... I have the same rules on LISP programming that I do with perl ...
    (comp.lang.lisp)
  • Re: Python or PHP?
    ... >>> every language here and there more ways to do something. ... I think you take your "pure programming lanuage" ... languages that took the opposite tack (i.e. - Perl and Common LISP) ... Python got chosen for this discussion for two reasons. ...
    (comp.lang.python)
  • Re: Implementing an English-Like Language - a Friendly Reply (Was:I just thought Id ask..)
    ... > interested in working with me on programming a programming ... > language in perl? ... all of the keywords would be english words ... If the language will be something screen reader ...
    (comp.lang.perl.misc)