I think this is a bug.. and tried to submit it once correctly to the perl development team. How sorry was I to see the troubled scripture was none other than my favorite phrase in all of the Kingdom of Perl! Hubris perhaps, to contemplate counting the *'s in $sky..

I caught a brief reference to a "quotemeta bug" in a perl-porters archive too..

My question is: Is this a feature we are blessed not to recapitulate in 5.6?

taygeta# perl -e '$s = "<tr><td>el</td></tr>"; $numtrs = $s =~ tr/\Q<tr\E/\Q<tr\E/; print "$numtrs trs.\n";#count trs'
10 trs.
taygeta# perl -e '$s = "<tr><td>el</td></tr>"; $numtrs = $s =~ tr/tr/tr/; print "$numtrs trs.\n";#count trs'
6 trs.

I assure you most religiously this ranked an epiphany for me when it struck. Funny (no! terrifying indeed it was!) it also revealed a bug in this very page of perlmonks.org as I was to post this meditation. Previewing the post leaves some of the code above the "Add it" bar. (Scared to write here in its entirety the damned phrase which was written through the corrupt agency of some demonic intent just below the hallowed name of the house of vroom..)

Perchance 'tis evidence of a holy battle with that frisky html bot? But the agony of rerecording the carats with more obfuscation!

..For the *un-html'd* code is displayed in the "Add this" frame each time. Demonic.. indeed! Much like our old manuscripts which would tolerate neither error nor spill of wine. Going back and forth ten times to make this post was - yes! I dare to say it - a test of faith.

My fervent hopes the above portent may resolve to solely (and most woefully to be sure) an overload of the flesh.

In Spiritus..


In reply to Count the stars in sky.. by mattr

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.