Having used both Perl and Python, I will suggest learning Perl first. There are fewer places in Perl where you can inadvertently write something other than you intended.

For one quick example, variables in Python spring into existence (in the current lexical scope) when first assigned. In Perl, (under use strict;) variables must be explicitly declared. This combines with Python's indentation-based block structure to create situations where you can produce a new variable instead of assigning the variable you intended. In Perl, block structure is explicit, using { and }, so those beginner mistakes are more easily caught by the compiler. Even with no strict; and using global variables, Perl is less confusing here, because global variables span the entire package, so you at least will not accidentally create new lexicals, as you can in Python.

Overall, Python and Tcl are more easily embedded than Perl, and tend to be used to script larger systems. Embedding the Perl interpreter has historically been somewhat difficult, and Perl tends to be used for freestanding programs as a result. Perl has a significant presence in automating minor system administration tasks, which was one of Perl's original motivations.

Learning Perl is a huge mountain to climb, but once you have reached that peak, other languages are easier to learn.

My other not-so-big-secret is GNU Emacs. It is an extremely powerful programmer's editor once you learn its unusual commands. Emacs' CPerl mode has been a significant assistance for me for many years now.


In reply to Re: Request your guidance. Please do not take it otherwise. by jcb
in thread Request your guidance. Please do not take it otherwise. by netizen

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.