"be consistent" | |
PerlMonks |
Re: HTML::Entities - encode all non-alphanumeric and foreign chars?by Sidhekin (Priest) |
on Sep 23, 2007 at 19:28 UTC ( [id://640604]=note: print w/replies, xml ) | Need Help?? |
Your problem is easier if you invert how you express the requirements: Rather than encode everything non-English + non-alphanumeric, encode everything but the English alphanumerics. Which ought to be something like this, depending on your idea of "English alphanumerics":
or ...
or ...
(That these follow the regex character class syntax is not actually documented, but I'd be surprised to see it stop working. Certainly, as you noted, the use of hyphen to denote character ranges is documented ...)
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|