HamNRye has asked for the wisdom of the Perl Monks concerning the following question:
How do you print an array in a format?? I've looked around, but have not found it so far.
I would have thought this would work, but no...
@test = (A, B, C); format TEST= ~~ Test@< = @< $test $test .
I have looked back to my other code, and for some reason I was contencating my list with newlines and outputting in this fashion. I assume that was the work around I had used at the time, but is there a "real way" to do this??
~Hammy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing an array in a format
by data64 (Chaplain) on Feb 23, 2002 at 21:59 UTC | |
|
Re: Printing an array in a format
by grep (Monsignor) on Feb 23, 2002 at 21:36 UTC | |
| |
|
Re: Printing an array in a format
by munchie (Monk) on Feb 23, 2002 at 21:47 UTC |