... with small differences in handling backslashes:
- Single quotes '' treat it like a single quoted string
my $var1 = <<'END'; \' $new \' \\ \/ END my $var2 = q/\' $new \' \\ \/ /; print $var1, $var2; # outputs \' $new \' \\ \/ \' $new \' \ /
-- Hofmator
In reply to Re: Re: Evaluating variables in here documents
by Hofmator
in thread Evaluating variables in here documents
by Gerard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |