LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-17-2019, 08:18 PM   #1
young_jedi
Member
 
Registered: Mar 2019
Posts: 37

Rep: Reputation: Disabled
Is Perl still relevant for IT professionals?


Is chose to learn Perl over Python cause I thought it to be the superior programming language, and I still think it is. But as an aspiring IT professional
is it actually of any use if no uses it, cause they all use Python instead? Am I right in my thinking that hardly anyone uses Perl still?
 
Old 03-17-2019, 10:58 PM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 2,736

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Quote:
Originally Posted by young_jedi View Post
Is chose to learn Perl over Python cause I thought it to be the superior programming language, and I still think it is. But as an aspiring IT professional
is it actually of any use if no uses it, cause they all use Python instead? Am I right in my thinking that hardly anyone uses Perl still?
I doubt that's right, but I don't know for sure. I use perl to do some pretty complex and (patting myself on the back) amazing things in web-based applications.

I've only recently looked at python and was, frankly, appalled at the indenting/column dependent syntax...shades of COBOL and AS/400...frightening!

That said, I don't know
1. anything about python
2. what is currently used in IT

NOTE: I have never used perl in a day job in the last 30 years. I've programmed in WANG VS BASIC, Burroughs LINC, Oracle SQL, Informatica and shell scripting (ksh and later, bash)...so, probably not helpful, except to say I really like perl...

Welcome to LQ
 
Old 03-17-2019, 11:45 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,734

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Python is quite popular. So is Python3. It's a bit lame that they are incompatible, you cannot write "any-Python" scripts.
 
Old 03-18-2019, 01:55 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,469

Rep: Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872
perl is still in use. Probably somewhere you can replace it (and use for example python), but not everywhere.
 
Old 03-18-2019, 02:55 AM   #5
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 3,845
Blog Entries: 3

Rep: Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815Reputation: 1815
I'd say perl is clearly a better fit for regular expression pattern matching but that it is only a little ahead for general text processing.

Python is rather good but seeing it used as a training language makes me wonder that it is being shoehorned into places where it is not a good fit. Oh, well. At least it won't be a repeat of what happened to us with BASIC.
 
1 members found this post helpful.
Old 03-18-2019, 04:54 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,689

Rep: Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795
perl is the latin of computing languages ...
Why do I suddenly have images of John Cleese as a centurion floating past ??
 
Old 03-18-2019, 06:23 AM   #7
GazL
Senior Member
 
Registered: May 2008
Posts: 4,952
Blog Entries: 15

Rep: Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559
Quote:
Originally Posted by Turbocapitalist View Post
Oh, well. At least it won't be a repeat of what happened to us with BASIC.
I've never understood the hatred for BASIC. Early versions had the line numbers and gosub/return and were pretty horrid, but even on old 8bit machines like the BBC Micro there were better dialects that had full support for functions, Procedures, labels and other niceties (BBC basic even had an inbuilt 6502 assembler).


Anyway, Perl is still a good fit if you're a UNIX systems admin as it is well suited to the kind of tasks that entails.

I really don't like the trend I see, especially in open-source/free-software of python encroaching into spaces it doesn't really belong in. My pet peeve at the moment is needing Python in order to build software with these fancy build systems that everyone seems to be using these days.
 
1 members found this post helpful.
Old 03-18-2019, 06:55 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,689

Rep: Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795Reputation: 2795
Quote:
Originally Posted by GazL View Post
My pet peeve at the moment is needing Python in order to build software with these fancy build systems that everyone seems to be using these days.
These days ???.

I remember deleting python from my gentoo system - must have been around a decade ago. Made a hell of a mess ...
 
1 members found this post helpful.
Old 03-18-2019, 07:30 AM   #9
GazL
Senior Member
 
Registered: May 2008
Posts: 4,952
Blog Entries: 15

Rep: Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559Reputation: 2559
Yeah fair point, though with the newer stuff like meson it seems far more visible than before.
 
Old 03-18-2019, 07:45 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,258

Rep: Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495Reputation: 5495
Quote:
Originally Posted by young_jedi View Post
Is chose to learn Perl over Python cause I thought it to be the superior programming language, and I still think it is. But as an aspiring IT professional is it actually of any use if no uses it, cause they all use Python instead? Am I right in my thinking that hardly anyone uses Perl still?
If you are truly an 'aspiring IT professional', you need to learn that having knowledge is NEVER a bad thing. You do realize that you can learn BOTH languages, right?? I use Perl a LOT...and Python as well. Personally, I think Perl is FAR more versatile, and can even be compiled to a genuine executable...not sure you can do that with Python, but honestly I've never tried.

You need to select the right tool for the job you need to do. Learn both, plus whatever else you might think you need.
 
1 members found this post helpful.
Old 03-18-2019, 08:00 AM   #11
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,469

Rep: Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872Reputation: 3872
Quote:
Originally Posted by TB0ne View Post
You need to select the right tool for the job you need to do.
Probably there is no right tool, just more suitable (?)
 
1 members found this post helpful.
Old 03-18-2019, 08:08 AM   #12
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,857

Rep: Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226Reputation: 1226
Are you coding to solve problems, or just impress someone with your buzzwords?

People are lately impressed by Python as a buzzword, as they are by Javascript. If you are solving real problems, then you want PERL for when other tools are only up to half of the job or are terribly inelegant.

I advise mastering one tool at a time, but never stop learning the value in new tools.
 
3 members found this post helpful.
Old 03-19-2019, 12:55 PM   #13
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,755

Rep: Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742Reputation: 3742
Quote:
Originally Posted by young_jedi View Post
Is chose to learn Perl over Python cause I thought it to be the superior programming language, and I still think it is. But as an aspiring IT professional
is it actually of any use if no uses it, cause they all use Python instead? Am I right in my thinking that hardly anyone uses Perl still?
The whole point of Perl is that you don't care if anyone else is using it.

Last edited by dugan; 03-19-2019 at 01:18 PM.
 
1 members found this post helpful.
Old 03-19-2019, 03:17 PM   #14
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 99
Blog Entries: 1

Rep: Reputation: 50
Quote:
Originally Posted by GazL View Post
I've never understood the hatred for BASIC. Early versions had the line numbers and gosub/return and were pretty horrid, but even on old 8bit machines like the BBC Micro there were better dialects that had full support for functions, Procedures, labels and other niceties (BBC basic even had an inbuilt 6502 assembler).
Indeed, the hatred for the language grew from the sort of cargo-cult posturing that looked to Dijkstra and then took him out of context. BASIC ultimately adopted all the things he thought were necessary to not learn bad lessons from it. People who knew "real languages" ignored the context of the critique and kept hating. It was an easy target. If you were a mediocre C++ coder, you could feel good about it by saying at least you don't code in Basic anymore. Meanwhile, it was Linus Torvalds first language-- so how terrible could it really be?
 
Old 03-19-2019, 04:03 PM   #15
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,293

Rep: Reputation: 100Reputation: 100
IMHO, "No" to both questions

Quote:
Originally Posted by young_jedi View Post
But as an aspiring IT professional
is it actually of any use if no uses it, cause they all use Python instead? Am I right in my thinking that hardly anyone uses Perl still?
"They" don't all use Python. It is the language du jour nowadays, though I remember when that was Ruby so they come and go like the tides. And, no, there's plenty of Perl being used.

That said... I'm swearing off Perl for the near future while I work on beefing up my Python skills. That means no Perl other than maintenance of existing scripts and no new projects in Perl so that I can immerse myself in Python. Once I get to the point where I am with Perl--I can pretty much write Perl in my sleep--and I implement enough projects in Python so that I'm writing it in my sleep, I'll allow Perl coding back into my routine. (I still find myself approaching any Python coding thinking of how I'd do this task in Perl. And, darn it, I'm so missing "use strict;". :^D )

I'd learn both if you have the time. You'll find scripts in both languages on any systems you are working on.

Have a lot of fun...

Cheers.
 
1 members found this post helpful.
  


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
Please ensure your reply is still relevant and timely. TheIndependentAquarius LQ Suggestions & Feedback 3 11-17-2012 11:44 AM
Is The UNIX-HATER Handbook still relevant today? mangotree General 4 07-16-2012 10:28 AM
LXer: Is Fedora Linux Still Relevant? LXer Syndicated Linux News 2 06-20-2009 06:09 AM
LXer: Is Fedora Linux Still Relevant? LXer Syndicated Linux News 0 06-19-2009 10:30 PM
LXer: Debian @15 is it still relevant? LXer Syndicated Linux News 1 08-18-2008 06:29 PM

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

All times are GMT -5. The time now is 01:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration