Go4Expert (http://www.go4expert.com/)
-   Python (http://www.go4expert.com/forums/python/)
-   -   Python Or Perl (http://www.go4expert.com/forums/python-or-perl-t2329/)

AliasXNeo 23Dec2006 13:47

Python Or Perl
Hey all.

Not sure if this is the right section for this, but it seems convient. On to my point, I've heard a lot about both Python and Perl. I want to learn one of them but I'm afraid books are not cutting it plus I always prefer user input over articles anyways (more variety of information). I've been programming PHP for almost a year now, along with Java and Ruby, I want to add another language onto my growing toolbelt (So I can fly through college).

So, can someone give me some reasons why one might be better than the other, or what field one is good in and the other isn't? I originally started learning python, but I couldn't find any good books, most of them either didn't cover the basics or you stayed in the interpreter window the whole time and never actually wrote any full scripts (which is the way I like to learn). As for Perl I was also considering because a very good friend of mine said he absolutely enjoys the language and really suggests that I learn it. So I'm kind of stuck here and need some more input. Thanks.

- Josh

montyauto 6Jan2007 19:09

Re: Python Or Perl
In term of language Perl is most powerfull especially if we need so much dealing with server side.
I think php has accomodate almost all aspects in Perl, but I'm not sure about Phyton.

DaWei 18Jan2007 21:02

Re: Python Or Perl
Perl was (is) a great language, but it's becoming a tad grizzled and doesn't have the close-to-the-machine abilities that make its age immaterial. It was designed to produce reports, but Wall did a great job of migrating it to more serious applications.

All that said, in my opinion, Python will be superior for developing your problem-solving abilities. It isn't exactly calculator versus slide rule, but technology marches on.

shabbir 19Jan2007 09:55

Re: Python Or Perl
My vote goes with the PERL

ever_thus 27Feb2007 22:51

Re: Python Or Perl
I'm not really qualified on this subject because my experience with Python is liminted, but my opinion is like this.

Perl is a language where you Can Do It. Its creators did a pretty good job of "making easy things easy and difficult things possible" (their motto). If you're familiar with programming constructs you find Perl a language where doing things is very intuitive.

On the other hand, this comes at a price. Perl is a language with a very confusing structure. If you want to create complex, structured apps, Perl's lack of clear structure will hinder you.

My personal beef with Perl (as a Windows man) is its strong UNIX bias. Again, this makes many things easy, since UNIX has lots of cool functionality. But if you don't like to do things the UNIX way you have to resort to contortions.

In my experience at least, Python does not suffer from these issues. But as a result it does not have the intuitiveness and ease that Perl has. However Python does have the powerful high-level functionality of Perl.

Lostinthought 28Feb2007 09:21

Re: Python Or Perl
I would say Perl

pradeep 28Feb2007 11:58

Re: Python Or Perl
Perl it is!

Krolik 8Mar2007 20:18

Re: Python Or Perl
Python has much better OO. It is possible with Perl, but somehow very complicated and strange. If you are willing to write a large app - I would definitely suggest Python.
And you have JPython which compiles directly to Java pseudocode which runs much faster.

pradeep 9Mar2007 10:10

Re: Python Or Perl
Well, it differs from programmer to programmer, OO Perl exists and I find Python strange. Both have their own merits and demerits.

All times are GMT +5.5. The time now is 10:27.