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

Why not? What makes it different when it is passed from the terminal?

Why does interpolation happen only once? Because that is how it works

my $stuff = "\n newline gets interpolated at compile time"; my $other = "$stuff \n gets interpolated at run time"; @ARGV = qw( $stuff $other NOINTERPOLATION ); print "$stuff\n$other\n@ARGV\n" __END__ newline gets interpolated at compile time newline gets interpolated at compile time gets interpolated at run time $stuff $other NOINTERPOLATION
See, $stuff and $other and @ARGV all get interpolated in that print call, but the values in @ARGV won't get magically interpolated once again
  • Comment on Re^3: hex code passed from command line is interpreted literally in substitution
  • Download Code