Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

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

How do I pronounce $var? Or $_? I

I pronounce $ as "dollar", or as "string". The latter is because I used to code in BASIC, where a dollar sign suffix denotes a string variable - I try to avoid that habit, but sometimes I fall back. Sometimes I just say "variable" instead of "dollar" (just to avoid confusion, I don't say scalar).

_ is "underscore", but sometimes I call $_ "default", instead of "dollar underscore".

These may be (probably are) wrong, but this is what I'm used to:

= is == equals eq equals (or "e q") ~ tilde $ dollar, variable ^ caret (but <tt>$^W</tt> --> "variable control W") @ at, array % hash _ underscore $_ default @_ default array {[( opening (or "left") curly, bracket, paren }[( closing (or "right") curly, bracket, paren : colon ; semicolon, stop / slash \ backslash, escape \n newline (not "escape n") \w word \s whitespace ` backtick <> glob, readline ("diamond" if without handle), tag (depending on co +ntext) < less-than-sign, opening (left) angle > greater-than-sign, closing (right)angle & ampersand, and && and (or "and and" to avoid confusion, "short and") | pipe, or || or (or "or or", "pipe pipe", "short or") ' single quote " double quote * asterisk, times -- decrease ++ increase # pound, comment, remark (not "hash" because of % :)
I leave out parens and curlies where they're not optional. I often say "end of $control_structure" instead of "closing curly"
So this:
while (<>) { s/\r/blah/; print $_ || "Empty\n"; }
becomes:
while diamond, s slash carriage return slash blah slash, stop, print default, short or, double quote titlecase empty, newline, double quote, stop. end of while.

Then again, my English is disastrous at best, so I don't think you should rely on this :)

U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk


In reply to Re: How do I pronounce all this stuff by Juerd
in thread How do I pronounce all this stuff by erikharrison

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 goofing around in the Monastery: (4)
As of 2024-03-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found