I'm not sure where you're going with this, but printf (see sprintf for full details) will output octal, if that's any help?
perl -E 'printf("%#o\n",ord($_)) for split("","\r\n");' 015 012
In reply to Re: Transforming "\r\n" to '\012\015'
by RichardK
in thread Transforming "\r\n" to '\012\015'
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |