in reply to Re^11: hex code passed from command line is interpreted literally in substitution
in thread hex code passed from command line is interpreted literally in substitution

ooooooh....

btw, what does the # do?
  • Comment on Re^12: hex code passed from command line is interpreted literally in substitution

Replies are listed 'Best First'.
Re^13: hex code passed from command line is interpreted literally in substitution
by ikegami (Patriarch) on Mar 10, 2011 at 23:54 UTC
    Say
    $arg1 = '//; system( ... ); #'; $arg2 = '1234;

    then

    eval "s/$arg_1/$arg_2/";

    becomes

    eval 's///; system( ... ); #/1234/';

    The # causes the last bit to be a comment. Not necessary, apparently.