B
Bart Van der Donck
Hello,
I was surprised to find out that there seems to be only one assignment
notation that guarantees no interpolation/escape:
#!perl
my $str = <<'EndOfString';
'"\ \$@% \\A $ $r \n \\n \\\B
EndOfString
chomp $str;
print $str;
IMO this is no assignment of a var anymore. It feels more like a trick
box with here-doc and chomp.
But this notation is not very parctical to use in daily work (eg
binaries). Does anyone else have the same experience/suggestions ?
I was surprised to find out that there seems to be only one assignment
notation that guarantees no interpolation/escape:
#!perl
my $str = <<'EndOfString';
'"\ \$@% \\A $ $r \n \\n \\\B
EndOfString
chomp $str;
print $str;
IMO this is no assignment of a var anymore. It feels more like a trick
box with here-doc and chomp.
But this notation is not very parctical to use in daily work (eg
binaries). Does anyone else have the same experience/suggestions ?