Correct. Perl string literal «"\\x41"» is the same as bash string literal «'\x41'». Both produce the string "\","x","4","1". Print $r if you don't believe me.
In reply to Re^5: hex code passed from command line is interpreted literally in substitution
by ikegami
in thread hex code passed from command line is interpreted literally in substitution
by Allasso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |