It had never occurred to me to use the automatic quoting of barewords before the fat comma for anything other than a hash key. Apparently it works in the even-numbered list positions as well, but I find this usage confusing.

Given this power of the fat comma, you could write

use strict; my @days = (Mon=>Tue=>Wed=>Thu=>Fri=>);
without getting a bareword warning. But please don't.

The fat comma is recommended for use in natural pairs, mostly the key-value pairs of a hash, and the option to omit the quotes around the hash keys is widely thought to improve the presentation.

Update: I stand corrected by the response below. Given that the post() parameters are not pairs, the following equivalent code would be standard formatting:

$kernel->post( ua => 'request', got_response => GET $url, );

$kernel->post( 'ua', 'request', 'got_response', GET $url, );


In reply to Re: Strange POE parameters by Narveson
in thread Strange POE parameters by brunnock

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.