Perl: the Markov chain saw | |
PerlMonks |
Quick Regex Questionby Anonymous Monk |
on Feb 08, 2001 at 00:00 UTC ( [id://57030]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a weird value, say, ^%@|CaD5H . What I need to do is make a file with that name. (The program is generating thousands of files. Filenames are one of the values of the data.) Anyways, the Win32 filesystem doesn't like the | as well as other characters. Is there a quick regex (and its reverse) that will convert non /a-zA-Z0-9_-/ to, say, the hex value? (and back again?)
TIA
Back to
Seekers of Perl Wisdom
|
|