Nice++. I could have used this recently in Re: Cleaning Data Between Specified Columns (the original version at the bottom).
If you used $possible_safe = join'', map chr, 0 .. 255; your pretty much guarenteed to find a safe char to use. (You might need to temporarially disable utf-8 if your dealing with unicode stuff I guess.)
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
In reply to Re: Finding a safe char with tr///d
by BrowserUk
in thread Finding a safe char with tr///d
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |