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..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Ah, 'twere but a night-mare
by mattr (Curate) on Apr 26, 2000 at 22:07 UTC | |
by Simplicus (Monk) on Apr 28, 2000 at 17:49 UTC |