Re: Comparing Regular Expression in Perl vs Python
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Wed, 28 Nov 2007 14:55:33 -0800
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
.
- Follow-Ups:
- RE: Comparing Regular Expression in Perl vs Python
- From: Bhargav Purohit
- RE: Comparing Regular Expression in Perl vs Python
- References:
- Comparing Regular Expression in Perl vs Python
- From: JBallinger
- Comparing Regular Expression in Perl vs Python
- Prev by Date: Re: fixed list combinatorics
- Next by Date: re: extracting fields from a matching line
- Previous by thread: Re: Comparing Regular Expression in Perl vs Python
- Next by thread: RE: Comparing Regular Expression in Perl vs Python
- Index(es):
Relevant Pages
|