Re: Comparing Regular Expression in Perl vs Python
- From: Jenda@xxxxxxxxxxx (Jenda Krynicky)
- Date: Fri, 30 Nov 2007 17:00:48 +0100
From: "Jeff Pang" <pangj@xxxxxxxxxxxxx>
both you and Paul mentioned that perl is maybe easier to learn than python.
but from many ppl's experience (including mine), python is easier to
get begin with.
One of the advantages of python is that it can write code with good
style, everyone's code looks the same.but for perl's code style, oops
you can think of that...
You can write Perl with good style ... it's just that there are
several or even many equaly good styles. So everyone's code doesn't
look the same. While Python basically forces you to one "true" style
.... at least in some things.
Freedom is nice, but comes at a price. In this particular case you
can choose which do you like better.
Many guys learned perl and were confused for perl's context concept. I
remembered a guy asked,
@x = (1,2,3);
@y = (2,3,4);
$a = @x;
$b = @y;
surely $a == $b, but why not @x == @y ?
Sorry, I've been with Perl for so long that I can't remember not
considering the concept natural. I actually miss it in other
languages all the time.
Especially with Perl, Python and even Ruby everyone should try all of
them and choose the one that fits his/her brain. I have chosen.
Jenda
===== Jenda@xxxxxxxxxxx === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
.
- Follow-Ups:
- Re: Comparing Regular Expression in Perl vs Python
- From: John W . Krahn
- Re: Comparing Regular Expression in Perl vs Python
- References:
- Re: Comparing Regular Expression in Perl vs Python
- From: hwigoda
- Re: Comparing Regular Expression in Perl vs Python
- From: Jeff Pang
- Re: Comparing Regular Expression in Perl vs Python
- Prev by Date: Re: Comparing Regular Expression in Perl vs Python
- Next by Date: seek and tell
- 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
|