LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-29-2013, 09:22 AM   #1
deepankerchawla
LQ Newbie
 
Registered: Oct 2012
Location: India
Distribution: Ubuntu
Posts: 8

Rep: Reputation: Disabled
PERL


should i learn perl or python for linux administration and security?
 
Old 01-29-2013, 09:37 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,822

Rep: Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368Reputation: 2368
Quote:
Originally Posted by deepankerchawla View Post
should i learn perl or python for linux administration and security?
That's up to you...neither is strictly REQUIRED, but the more you learn about anything, the better equipped you'll be to deal with problems. You can also add in shell scripting to that mix.
 
Old 01-29-2013, 09:43 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
really can depend what distro you're using. I chose to learn perl a long time back, but later in my career had to pick up python as RedHat deploys most of it's configuration tools in python, so there were a significnatly higher number of libraries and the likes already available on locked down boxes. If you're able to get these things installed to your own comfort, it really doesn't matter either way. They're pretty equally capable, as is Ruby.
 
Old 01-29-2013, 08:50 PM   #4
T-Foca
LQ Newbie
 
Registered: Jan 2013
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
You really should learn both, as they both have their advantages and are easy enough to learn, but if I'd have to choose one, I'd say go with Perl. Perl is really suited for quick and dirty scripts and has a very powerful regular expression engine built it, making it perfect for extraction of data (hence the backronym: Practical Extraction and Report Language).
 
Old 01-29-2013, 11:10 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,996

Rep: Reputation: 261Reputation: 261Reputation: 261
Or Pathologically Eclectic Rubbish Lister :-). I second the idea of learning both, although I've switched from Perl to Python for 99% of what I do. I generally pull out Perl only when I need really, really heavy text processing that can't be handled by sed & awk. I personally think that for a newcomer who has never programmed before, Python provides a better introduction since the code is substantially more reasable, but for someone more experienced IMO it's more a matter of personal preference + the requirements of the particular task at hand.
 
  


Reply

Tags
perl, python


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install vim via yum thinks perl is required - I build perl 5.14.2 from source rubanek Linux - General 4 05-02-2012 06:42 PM
Print output of a script to screen using Perl/Multiple installation of Perl Modules metallica1973 Linux - General 1 02-17-2011 05:59 PM
LXer: Installing Eclipse, the Epic Perl plugin and my first Perl GUI program LXer Syndicated Linux News 0 05-08-2009 06:41 PM
RHEL4u2 perl localtime() call issues (perl & glibc) Brad.Scalio@noaa.gov Linux - Enterprise 3 01-23-2007 09:27 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM


All times are GMT -5. The time now is 03:30 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