in reply to Re^2: hex code passed from command line is interpreted literally in substitution
in thread hex code passed from command line is interpreted literally in substitution
Then I guess I misunderstand what you are trying to do:
$find = "\x20"; $rep = "\x30";; $s = "The quick brown fox jumps over the lazy dog";; $s =~ s[$find][$rep]eg;; print $s;; The0quick0brown0fox0jumps0over0the0lazy0dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: hex code passed from command line is interpreted literally in substitution
by Allasso (Monk) on Mar 05, 2011 at 22:27 UTC | |
|
Re^4: hex code passed from command line is interpreted literally in substitution (strike 3)
by tye (Sage) on Mar 10, 2011 at 17:31 UTC | |
by BrowserUk (Patriarch) on Mar 10, 2011 at 17:51 UTC |