If you put the initial DATA in single quotes, interpolation goes away.
my $store = <<'DATA'; $this_wont_be_interpolated DATA
This is explained in better detail in perlop, under the HERE-doc section. The options for here-doc quoting are "double quote" style interpolation (default), "single quote" style non-interpolation, and back-tick style.
Dave
In reply to Re: here-doc question
by davido
in thread heredoc interpolation
by avo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |