my @array = qw( what happened when you tried it? ); print <<EOT; @array EOT
It works fine; you may just want newlines not spaces between elements (in which case see the documentation for $" in perlvar).
In reply to Re: Printing an array in a Here Doc
by Fletch
in thread Printing an array in a Here Doc
by tmtech1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |