OK , it's petty and odd but this has piqued my curosity enough that I just cannot let go. After reading Perl6 Headaches? and the associated discussion of the . and the _ , specifically how the new concatenation operator would need to be de-ambigufied (sp.) with a leading whitespace ie $foo _ $bar , or $foo _$bar.

So what? Well lets come back to perl5 concatenation.
print $foo.$bar
does what I expect concatenation to do.
BUT print $foo.bar.how.is.my.syntax

I would have expected to be a syntax error, admittedly it spews warnings if -w is specified , and it certainly won't pass strict.

The question? Could someone explain what . is doing to it's left and right values, throwing a theoretical qq/ / around them? Of course if a sub bar {} had been declared then .bar concatenates the return value of &bar().


I can't believe it's not psellchecked

In reply to Syntax Explanation Please by submersible_toaster

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.