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
thanks, I was trying to use chr after Corion's suggestion to use pack/unpack, but I couldn't figure out how to make it work with hex (easily).arg.pl '\x61' '\x41' $arg_2 =~ s@\\x([0-9a-fA-F]+)@chr hex $1@ge;
|
|---|