Follow-up Comment #10, bug #68136 (group groff):

Great, glad it was useful.

The sequence of tags my sample code generates is invariant but nonintuitive.
If, for debugging purposes, it's better to have a more intuitive sequence, one
might be able to use this "tr" instead.

tr/0-9A-F/A-P/

I say "might" because even in its most recent documentation
(http://perldoc.perl.org/5.42.1/perlop#Transliteration-Quote-Like-Operators),
perl leaves undocumented what happens when tr's SEARCHLIST and REPLACEMENTLIST
overlap.  The "tr" above does what one would expect in perl v5.18.2 and perl
v5.30.3, but I don't have older perls to test on, and the fact that it's
undocumented makes me wonder whether the behavior is guaranteed.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68136>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to