Re: Comparing Regular Expression in Perl vs Python



On Nov 30, 2007 9:18 AM, Jeff Pang <pangj@xxxxxxxxxxxxx> wrote:
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...

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 ?

Some guys answered him. But he was not satisfied with all the answers,
finally he switched to python and threw up some dirty words on perl
(google it with the keyword of "perl是一种邪教").

ok I said some OP words here, it doesn't mean I like python more than
perl. In fact I have used perl for about 5 years, I like it than any
others.

I've been using Perl for only about 1.5 years, and never touched Python.
About 16 months ago, I decided to learn a "scripting language" that
I've heard mentioned so many times. I was debating between Perl and
Python. I'm not quite sure why I chose Perl. I know that several open
source projects allow Python plugins (Gimp, InkScape) but Perl can be
used for CGI stuff. (If Python also does CGI, I never heard it.) So I
chose Perl.
Being that I was already familiar with C/C++, Perl was fairly simple
to pick up. I read a couple of tutorials and pretty quickly was using
perldoc as my main source of information. While Perl does have some
quirky stuff, overall I found it easy to learn and very capable of
doing a lot without a lot of coding effort.
After being "part" of the mailing list for a bit, I learnt not to post
without first checking perldoc/cpan, so that may as well be a factor
for the mailing list's lack of activity.


Relevant Pages

  • Re: Python equivalent of Perl-ISAPI?
    ... I need something that will do cgi scripts (a lot of which I already ... Except I need cgi, not asp, for the reasons i gave. ... Python or Perl. ...
    (comp.lang.python)
  • Re: Python equivalent of Perl-ISAPI?
    ... I need something that will do cgi scripts (a lot of which I already ... Except I need cgi, not asp, for the reasons i gave. ... Python or Perl. ...
    (comp.lang.python)
  • Re: Python equivalent of Perl-ISAPI?
    ... I need something that will do cgi scripts (a lot of which I already ... Except I need cgi, not asp, for the reasons i gave. ... Python or Perl. ...
    (comp.lang.python)
  • Re: Where do I start?
    ... >any suggestions on whether to consider the Boa web server, ... Perl has alot of modules to support html and cgi. ... First the one thing I don't like about Python, ...
    (comp.os.linux.development.apps)
  • Re: Python-cgi web or Perl-cgi script doubt
    ... JUST cgi - ie no mod_perl, no mod_python, etc. ... With perl, the program needs to be loaded and recompiled with each run. ... I find python nicer for this sort of things these days - larger because it ...
    (comp.lang.python)