LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-19-2003, 10:28 AM   #1
enk0d
Member
 
Registered: May 2003
Location: Miami, Florida. U.S.A
Distribution: Slackware 9.1
Posts: 102

Rep: Reputation: 15
Python & Perl: Which is better?


I don't want to step on any toes here but i really would like a honest and sincere answer to my post.

I have done some looking and reading and from most of the posts everyone seems to say that python and perl are the same but are they really? Python is object orienated that is and can help you to learning C/C++ later on in your scripting adventures. When I sit back and look at the world today what is used more what is better to learn when someone wants to become a system admin. I would like to get certified in RHCE and Cisco but how much python will i be using then or during my time getting my bachelors or masters in electronic engineering?

Some people say Python is easier to learn as compared to Python but is that really true for someone who is a newbie to programming?
 
Old 05-19-2003, 12:43 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Well I guess most would say you use a language to solve a problem, they're a tool. So if one language would make it easier to solve a problem than another, use the easier of the two.
As you dont mention a specific problem you intent to use Python or Perl to solve, think up an interesting project/problem you want to solve, then find which is the better language to solve it in. Then try solving it in the other language once you've developed your solution

And now after all those buzzwords: PYTHON!
Mixed with wxPython it's so easy to make fancy gui apps, and the interactive nature of Python makes coding and testing faster (no need to compile, thought there is a compiled form to speed things up)

Last edited by Proud; 05-19-2003 at 12:47 PM.
 
Old 05-19-2003, 12:44 PM   #3
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Oh god...*ducks*

I think most people would agree that Python is easier to learn, and that the object-oriented features of Python would make it a bit easier to grasp C++ later on.

Alex
 
Old 05-19-2003, 04:00 PM   #4
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Rep: Reputation: 15
Hmm...I think if you're staying on the UNIX side of things Perl would suit you better. I'm no expert on either (just started learning Perl, dinked around in Py for a while...), but that's the general impression I get (Perl having more modules and all...I've seen a lot of network-based stuff written in Perl).
 
Old 05-19-2003, 07:39 PM   #5
enk0d
Member
 
Registered: May 2003
Location: Miami, Florida. U.S.A
Distribution: Slackware 9.1
Posts: 102

Original Poster
Rep: Reputation: 15
well the reason why i was asking is because i am planning on getting into more network security and system admin so this is why i was thinking that perl would be ideal for the job. Seeing how alot of people use python as a introductory language could one use perl for the same thing? Provided you get go documention on it like a orielly book
 
Old 05-20-2003, 04:34 AM   #6
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
Perl is OK as an introductory language - not ideal, but if you have a good book you'll be fine.

Alex
 
Old 05-20-2003, 04:54 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
perl is really cool. as is python, however python is substantially different from most other procedural languages, i'd recommend a more conventional language like C or Perl as the knowledge you'll get from there should prove much more transferrable than having python as your first port of call.
 
Old 05-20-2003, 03:48 PM   #8
joesbox
Member
 
Registered: Feb 2003
Location: hampton va
Distribution: ubuntu
Posts: 502

Rep: Reputation: 30
Quote:
Originally posted by llama_meme
Perl is OK as an introductory language - not ideal, but if you have a good book you'll be fine.

Alex
i agree. perl is the only language that i know (for now) here is the book that i learned when training to take over the web here at work.
Perl and CGI for the world wide web

yes it is mostly for web application but i was able to translate to other functions.
 
Old 05-22-2003, 09:15 PM   #9
enk0d
Member
 
Registered: May 2003
Location: Miami, Florida. U.S.A
Distribution: Slackware 9.1
Posts: 102

Original Poster
Rep: Reputation: 15
Hmmm.........interesting what about the scripting aspect of it and using it within programs like irssi for example. When I look around I notice that most people start out learning perl because of there addiction so to speak to IRC. But if someone like me is to learn perl but at the same time use it in irssi is there a conflict between the two? Learning perl scripting for IRC and learning perl scripting for the real world or will the two benefit each other perfectly?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python or Perl? Boby Programming 2 06-12-2005 10:54 AM
Perl or Python JJX Programming 6 10-27-2004 03:58 AM
Perl or Python ! linuxlover1 Programming 13 04-19-2004 07:33 AM
Perl vs PHP, PYTHON shebang Programming 5 02-14-2004 12:13 PM
Perl or Python to C++ compiler JHuizingh Programming 0 07-16-2002 11:36 AM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration