in reply to How do I pronounce all this stuff

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

Replies are listed 'Best First'.
Re: Re: How do I pronounce all this stuff
by Biker (Priest) on Apr 10, 2002 at 18:40 UTC

    "I leave out parens and curlies where they're not optional."

    Are you sure? (Sorry Juerd, I just couldn't resist. ;-)


    Everything went worng, just as foreseen.

      I think he meant it the way he said, as 'while (<>)' was pronounced as 'while diamond'? He knows the parens are needed, the Perl-knowledgable listener knows the parens are needed, so in a spoken context they're little more than line noise.

      Vocal line noise. Now there's a scary thought.

Re: Re: How do I pronounce all this stuff
by robot_tourist (Hermit) on Apr 11, 2002 at 07:15 UTC
    #   pound, comment, remark (not "hash" because of % :)

    The # character should never be pronounced pound. I accept square sign, but £ means pound because it is simply a fancy L, which is short for the latin libra meaning pound. YAA (Yet Another Americanisation ;) ) that came about this time from the difference between UK and US keyboards.

    I have a wiry brain/each eye a camera. Robot Tourist, by Ten Benson

      # is obviously "sharp". That's how we get "sh-bang" (#!) to start every program!

      - Richie

        # is obviously "sharp". That's how we get "sh-bang" (#!) to start every program!

        I thought that was "hash bang", but "sharp bang" sounds more logical.

        This is a culture shock, getting used to "sharp" will take a while.

        Yes, I reinvent wheels.
        

      That's a pretty specious argument.

      In any event the name of # is of great debate. There are many terms (most listed in the two links I provided earlier (higher up, below.)

    • The Useless Pages used to have an entire section dedicated to this, I cannot find it now
    • Octothorpe
    • Despite the actual definition I had heard Sesquipedalian as a contender
    • Interesting observation
    • If - is a bithorpe and # is an octothorpe, why isn't * a hexathorpe? And if - is a bithorpe and = is a quadrathorpe, what's +? And furthermore, what's a thorpe?

      --
      perl -pe "s/\b;([mnst])/'\1/mg"

      The # character should never be pronounced pound.

      #perl (irc channel) is often refered to as "pound perl", and I tend to use "remark" when talking about code. When not in Perl context, I use "hash" for it, but that's far to confusing when talking about Perl code :).

      Yes, I reinvent wheels.