|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^3: Interpretting character combinations as special characters.by vitoco (Pilgrim) |
| on Dec 11, 2009 at 18:27 UTC ( #812417=note: print w/ replies, xml ) | Need Help?? |
|
You are right... I should have begun with a big warning about how evil could eval be. Fortunately, OP is processing one char at a time, and I couldn't think of a one-byte malicious code. ;-) BTW, the first solution I though was this:
That will preserve unknown escape codes from text... Also, thanks to JavaFan, // operator was new to me...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||