Hello Monks,

I've visited the PerlMonks monastery occasionally to glean over the fabulous and impartial help offered here.

I come here now with a question, that I hope will not rile you all.

I intend to use a scripting language for gathering reports, most of which will be filtering through command line outputs (The cli application is accessed through Ubuntu Linux). It has been over 10 years that I have written a script in Perl. Back then too, It was nothing earth shattering, just gathering command outputs and filtering stuff through regex. This time though, I need to gather outputs and redirect to an existing excel file, either populate the blank fields or update the existing fields with new data.

Most of my organization's current scripts are written in Python, but I will be the only person using the scripts I write and when it comes to capturing command line outputs, I like Perl's approach rather than the subprocess popen, communicate etc offered by python. Also, I have a preference for Perl's regular expressions than Python's. I am not dissing Python, it is a great language. But I like Perl a lot and want to use it for my work. I checked a few articles though, and they all seem to say that 1) Python offers better error handling than Perl 2)Functions are first class citizens in Python, 3)Even for the kind of reporting I am looking for, Python would be a better choice.

Most Monks here have played with and professionally used more than 1 language, and I think Python would be a part of that gamut.

Second and equally important part is, I need to put Perl in my resume as the only language I use for automation, thinking it will give me an edge over those who mention Python as the only scripting language they use. So is there any advantage in learning / refreshing Perl? How is the job market for Perl? Is it really low in demand like how a lot of articles/videos say on the internet?

Ideally, I would like to refresh my Perl knowledge and learn Python too, however, given my current workload, I can pick only one as of now, and may be 4 to 5 months later, I can focus on 1 more language. That and the fact that it will not be a good idea to learn two languages simultaneously, is what is keeping me from re learning 1 language while learning a new one from scratch. Besides, I already know Perl to some extent, and refreshing it will (I think) take less time than learning another from scratch. My learning method is also quite unusual in that I focus on what I want, read up stuff on that (that's why I wrote the popen communicate point above) rather than learning everything and then write scripts.

Any help or guidance will be much appreciated


In reply to What technical benfits perl offers over python + few more questions. by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.