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
#!/usr/bin/perl -wl use strict; my ($arg_1, $arg_2) = @ARGV; $_ = "apples"; my $expr = "s/".$arg_1."/".$arg_2."/"; eval $expr; print; ------- ./test.pl '\x61(.*)\x73' '\x41$1\x53' AppleS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hex code passed from command line is interpreted literally in substitution
by Anonymous Monk on Mar 10, 2011 at 03:05 UTC | |
by Allasso (Monk) on Mar 10, 2011 at 12:41 UTC | |
by Anonymous Monk on Mar 10, 2011 at 14:14 UTC | |
by Allasso (Monk) on Mar 10, 2011 at 14:38 UTC | |
by Anonymous Monk on Mar 10, 2011 at 16:52 UTC | |
|