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

Most definitely:

$arg1 = '//; system( ... ); #';

Or without even breaking out of the s///:

$arg1 = '${ system( ... ) }';

Replies are listed 'Best First'.
Re^12: hex code passed from command line is interpreted literally in substitution
by Allasso (Monk) on Mar 10, 2011 at 23:45 UTC
    ooooooh....

    btw, what does the # do?
      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.