in reply to Printing an array in a Here Doc
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing an array in a Here Doc
by tmtech1 (Initiate) on Jun 27, 2006 at 20:29 UTC | |
by shmem (Chancellor) on Jun 27, 2006 at 22:31 UTC |