See oct; chr; Search and replace in perlretut (search for s///e); and g in perlre for details.$string =~ s/\\([0-7]+)/chr oct $1/eg;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: How to convert octal non printable chars in a string?
by kennethk
in thread How to convert octal non printable chars in a string?
by platbr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |