Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found