I'm not sure that follows. "is the same" for "${s}" & "@{a}" doesn't have to translate into "has to be the same" for "%{h}" does it? Perl has plenty on non-orthoganalities already.

The "sigil{bareword}" syntax is specifically intended to disambiguate those cases where "sigil\w+" would be mis-interpreted

my $a = $year < 1999 ? 'pre-' :'post-'; print "In the context of ${a}millenium treatment of dates, $year becam +e...";

Are there any other cases that would need special treatment if "%h" was designated as being equivalent to "@{[ %h ]}" except when used with the format strings for (s)printf where it would be necessary to disambiguate it by using "%s %3d %{h}"? I can't think of any, can you?


In reply to Re: Re: Why doesn't % interpolate? by Anonymous Monk
in thread Why doesn't % interpolate? by diotalevi

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.