in reply to hex code passed from command line is interpreted literally in substitution
Add /e to the substitution:
$var =~ s@$arg_1@$arg_2@e;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hex code passed from command line is interpreted literally in substitution
by Allasso (Monk) on Mar 05, 2011 at 21:17 UTC | |
by BrowserUk (Patriarch) on Mar 05, 2011 at 21:52 UTC | |
by Allasso (Monk) on Mar 05, 2011 at 22:27 UTC | |
by tye (Sage) on Mar 10, 2011 at 17:31 UTC | |
by BrowserUk (Patriarch) on Mar 10, 2011 at 17:51 UTC |