in reply to Re: Evaluating variables in here documents
in thread Evaluating variables in here documents

  • Single quotes '' treat it like a single quoted string
... with small differences in handling backslashes:
my $var1 = <<'END'; \' $new \' \\ \/ END my $var2 = q/\' $new \' \\ \/ /; print $var1, $var2; # outputs \' $new \' \\ \/ \' $new \' \ /

-- Hofmator