in reply to Re: hex code passed from command line is interpreted literally in substitution
in thread hex code passed from command line is interpreted literally in substitution
Two things I am wondering though,$var = 'a'; $arg_2 =~ s@\\x([0-9]+)@pack("H*", $1)@ge; $var =~ s@$arg_1@$arg_2@; # works now print "$var\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hex code passed from command line is interpreted literally in substitution
by ikegami (Patriarch) on Mar 06, 2011 at 00:43 UTC |