LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-21-2014, 01:53 PM   #1
Lin77
LQ Newbie
 
Registered: Jun 2012
Location: Sacramento, Calif
Posts: 16

Rep: Reputation: Disabled
Python or Perl


Which of the two programming languages will be in greater demand in the near future, for programming. Why?
 
Old 08-21-2014, 02:05 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You know that this is a religious issue, right?

I vote for Python and I'm ready to to defend it with religious ferocity. Bring it on!

Anyway, the arguments you'll likely hear brought up in favor of Perl are:
  • Perl has maintained backward compatibility, while Python just didn't care
  • Perl's syntax, which doesn't enforce whitespacing and which is closer to shell script, is preferred by some

Whether you find those to be compelling is a matter of personal preference.

Perhaps it would be more productive if you could narrow down which industry you plan to go into (web development? film production? scientific computing? system administration?), and describe the programming projects you intend to work on? What's widely used in one field might be less widely used in another.

Last edited by dugan; 08-21-2014 at 02:44 PM.
 
Old 08-21-2014, 03:25 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-21-2014, 03:57 PM   #4
Lin77
LQ Newbie
 
Registered: Jun 2012
Location: Sacramento, Calif
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks Dugan

Thank you for the reply! I am interested in system administration, Dugan. I welcome any advice and pointers.
 
Old 08-21-2014, 04:00 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
System administration is an area where Perl is still very much in use, and will be for the foreseeable future.
 
Old 08-21-2014, 04:08 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Personally running into less and less perl as time goes on. More Python, shell scripts, even PHP and Ruby in the sysadmin world.
 
Old 08-21-2014, 09:59 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I've been around a while and almost no amount of calculation can outsmart the future.

I might be tempted to say that python (while still goofy version to version) may get my vote.
 
Old 08-23-2014, 08:27 AM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Why choose? To be honest, once you've learned one of them, the other isn't that hard to pick up. In my field (bioinformatics), both languages are in use. There does tend to be an age split (older folks using perl, younger ones Python), but it makes zero difference in terms of productivity. I also have yet to run into a problem where one language succeeds but the other fails.
 
1 members found this post helpful.
Old 08-23-2014, 10:18 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by Hangdog42 View Post
Why choose?
Yes, imo it is better to know both (and possibly ruby and more) when passing a job interview. Even if perl is older, you may find some maintenance perl scripts left by ancient admins at the work place
 
Old 08-23-2014, 10:29 AM   #10
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Also knowing php-cli can be useful. These script languages aren't that different, to tell the truth. (Let's note that python and python3 are different languages, though.)
 
  


Reply



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 related: How to access a Perl script behind a firewall from Python? vxc69 Programming 8 12-14-2010 07:32 AM
My needs: Perl vs. Python dave201 Programming 25 08-11-2007 11:13 PM
Python or Perl drdroid Programming 29 12-22-2006 09: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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration