I just found an uglier case.
rob@dev01 $ perl -MO=Deparse -e '$x{_$}' Missing right curly or square bracket at -e line 1, at end of line syntax error at -e line 1, at EOF -e had compilation errors. rob@dev01 $ perl -MO=Deparse -e '$x{_$}}' $x{$}->_}; -e syntax OK

Just interpose the _ and $ in $_. In almost 9 years, I've never run into that. I must have typed "{$_}" almost a million times and never mistyped it. *shudders* That's the kind of typo that brings grey hair to men in the teens!

And, then you have $x{y$}, which is transliteration, $x{s$}, which tries to do substitution ... either it quotes or it doesn't!

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose


In reply to Re: Re: Hashkey stringification ... sometimes. by dragonchild
in thread Hashkey stringification ... sometimes. by dragonchild

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.