TimToady had not seen this thread otherwise he would have advertised that was a no-brainer in Perl6. I asked him but could not find that thread again. Hopefully I crossed again it in "best nodes" So from the mouth of the horse^Wcamel and some other #perl6 usual suspects:
Feb 23 00:05:33 <cognominal> recently in perlmonks someone wanted a + qw() that supported comments, is there an idiom for that in perl6? Feb 23 00:06:02 <Juerd> cognominal: <<>>, IIRC Feb 23 00:06:43 <cognominal> I was surprised not to see TimToady pu +shing a Perl6 solution :) Feb 23 00:07:10 <TimToady> cognominal: I don't think we actually sa +id anything about comments, but considering that it's "shell quoting" +, and shells have comments, they could sneak in there... Feb 23 00:07:12 <Juerd> It could still happen Feb 23 00:07:45 <Juerd> TimToady: But let's not have \\\n :) Feb 23 00:07:55 <TimToady> Didn't see that PM thread... Feb 23 00:08:03 <audreyt> shells have line-terminated comments Feb 23 00:08:13 <Juerd> audreyt: That was implied :) Feb 23 00:08:21 <TimToady> So put line breaks in. Feb 23 00:08:36 * audreyt purrs randomly Feb 23 00:09:51 <audreyt> my @x = << Feb 23 00:09:59 <audreyt> This is some splitted words # but not + this Feb 23 00:10:05 <audreyt> and this too # but not this Feb 23 00:10:07 <audreyt> >>;

-- stefp


In reply to Re: comments and qw by stefp
in thread comments and qw by Tanktalus

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.