Find the answer to your Linux question:
Results 1 to 7 of 7
which do you think would be more useful to learn?...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    Perl vs Python

    which do you think would be more useful to learn?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,340
    I don't think there is an accurate answer to your question as the usefulness of a programming language really depends on what you as an individual wants to achieve. For example if you ar going to be administering Unix systems, then perl would probably be a very good language to learn and for developing GUI based apps, Python wouldn't be a bad choice.

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    2
    mmmm, i see. Because i was thinking about getting into python, but i was wondering if perl would be a better choice if im gonna spend a large amout of time learning something.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,340
    Quote Originally Posted by freakotaku14 View Post
    mmmm, i see. Because i was thinking about getting into python, but i was wondering if perl would be a better choice if im gonna spend a large amout of time learning something.
    If you have time, you could learn both. I personally found python to be quite easy to learn and now I am trying to get to grips with perl.

  5. #5
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    For the record, I don't know Python, but I do know Perl.

    daark is correct in that there is no "best" language. Have you ever programmed before? Python has a significantly lower learning curve than Perl does. And once you've picked up one language, it is much easier to transfer the concepts to another language.

    What I usually suggest is that rather than agonizing over what language to learn, just pick one and go! Both languages have a huge number of external libraries, a huge community, an established culture, etc. Perl was inspired by a lot of UNIX traditions, while Python (as far as I know), is something of its own deal.

    There's nothing saying you can't learn both. Just start somewhere and go.
    DISTRO=Arch
    Registered Linux User #388732

  6. #6
    Just Joined!
    Join Date
    Nov 2006
    Posts
    4
    I'd also recommend to learn both.

    If you really need to choose, then go for:

    * perl if you want to pick the language with the larger user base and larger number of available libraries, modules, frameworks etc.

    * python if you want to pick the language that is less ugly and contains less anachronisms that one usually wants to hide from people who are rather new to programming.

    * ruby if you want to go for a scripting language that is really elegantly designed and well-suited from a pedagogical point of view.

    Both python and especially ruby can be easily used as scripting languages with Java, which might be a plus if you already have experience with Java.

  7. #7
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    474
    I'm also starting out to program now, I'm starting with Python, I did some little bit of perl..but really just the basics. In fact I had no reason to switch to Python...I just learned some of perl's syntax and so and then for some reason switched to python and it's really great and easy. The syntax is clean, however I've never programmed before and can only do basic things such as creating simple server + client scripts that connect & I created a simple irc bot too and some one or two other things

    This all in two days of learning, quite easy I believe considering I knew nothing. But I can't say which is better, I know though that perl is better for scripting on UNIX, it almost falls into the same category as sed and awk if i'm not mistaken. (Well in that respect at least)

Posting Permissions

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