Add /e to the substitution:
$var =~ s@$arg_1@$arg_2@e;
In reply to Re: hex code passed from command line is interpreted literally in substitution
by BrowserUk
in thread hex code passed from command line is interpreted literally in substitution
by Allasso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |