Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

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

G'day Rolf,

I have a whole series of functions and aliases of the form perlX, where X is a lowercase letter. Here's a couple of examples.

This one I use almost every day. It's been in my toolbox since the mid '90s. It probably started as a simple contraction of perl -e; then -e became -E; strict and warnings were added; and so on. The -MCarp::Always is a fairly recent addition.

$ alias perle alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E +'

This one's for Unicode work.

$ alias perlu alias perlu='perl -Mstrict -Mwarnings -Mautodie=:all -Mutf8 -C -E'

These are all for my own personal use. As I've added more over the years, some obvious letters were already taken so alternative (less obvious) ones were used. Only having to remember a single letter is easy for me and not confusing at all; in fact, it's mostly muscle memory. Remembering the historical reasoning behind the choice of a letter is far less important and, in some cases, gets forgotten.

Addendum: It looks like you've hard-coded the "less confusing" link to https://perlmonks.org/?node_id=11133350. Following that link puts me in a logged-out (Anonymous Monk) state. Please fix by changing that to [id://11133350|less confusing].

— Ken


In reply to Re^3: Simple CLI calculator based on Perl's eval() by kcott
in thread Simple CLI calculator based on Perl's eval() by reisinge

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 romping around the Monastery: (3)
As of 2024-03-29 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found