Find the answer to your Linux question:
Results 1 to 8 of 8
If you have real experience with PERL and Python, here is a question: For general purpose use, do you find PERL to be a waste of time to learn compared ...
  1. #1
    Banned
    Join Date
    Jul 2009
    Posts
    12

    Question A question for users of PERL and Python.

    If you have real experience with PERL and Python, here is a question:
    For general purpose use, do you find PERL to be a waste of time to learn compared to Python? I'm not asking if it's easier to learn, write, or maintain. I'm wondering: if you have real experience with both, do you find Python to be much better than PERL for general use? I've read Eric Raymond's opinion.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    It does not matter what you like more girl or soccer
    both are fun..
    Perl is complicated and confusing like girls. (so deal with it only when necessary)
    but Python is a real joy. easy and smooth..

    but with Perl you can reduce the number of lines in source for sure..
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Banned
    Join Date
    Jul 2009
    Posts
    12
    I like PERL ... but from what I've read it seems like Python may be the better of the two, generally. I know enough PERL to get me by, but before really drilling it into my head I thought maybe I'd be happier if I learned a lot about Python. Right now, I'm reading C in a Nutshell. I know enough C to make the book very easy to follow, but it has many details and examples that I have not had the opportunity to read about or try. It's a very good book.

  4. #4
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    The word "better" is always difficult. For instance, a lot of people find the syntax and strange variables in Perl very difficult to learn and remember, whereas I love the compactness and fun things you can do.

    I don't see why you need to say if one is better than the other. Perl is probably more popular overall, due to its power with CGI, but you should learn both and use each whenever you feel it's more appropriate.
    DISTRO=Arch
    Registered Linux User #388732

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Location
    Toronto
    Posts
    18
    In my professional experience, Python is much more common than Perl. But I am mostly a c/c++ dev, so perhaps it's different in web/sys admin realms.

  6. #6
    Banned
    Join Date
    Jul 2009
    Posts
    12
    What I've read online seems to show Python being quite a bit more popular than PERL ...

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I prefer python, i've used perl and find it highly obfuscated, but python is very easy to read, write, and maintain. I can't go back to a perl script and remember what I'm doing unless every line has a comment for the most part. Python is gaining popularity and ever increasing libraries, which still doesn't compare to CPAN, but it is getting close, and I imagine will surpass that soon.

  8. #8
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    A lot of my experience has been in web development, and while there is a big shift now to MVC frameworks (think Ruby on Rails), which is good, you still see a lot of Perl in that field. Perl has also been historically very popular due to CPAN, a repository of libraries.

    However, I'm still not sure how to answer your question. Neither Perl nor Python is better, and any company you ever work for may be using one, the other, or something else entirely.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •