-   Linux - Newbie (
-   -   PERL (

deepankerchawla 01-29-2013 09:22 AM

should i learn perl or python for linux administration and security?

TB0ne 01-29-2013 09:37 AM


Originally Posted by deepankerchawla (Post 4879917)
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.

acid_kewpie 01-29-2013 09:43 AM

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.

T-Foca 01-29-2013 08:50 PM

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).

btmiller 01-29-2013 11:10 PM

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.

All times are GMT -5. The time now is 01:09 AM.