in reply to Re^3: Printing an array using while loop
in thread Printing an array using while loop
(drifting off-topic...)
It was actually useful for me, even though it's not a homework assignment :)
I wanted to send the results to a file (not a problem), but this syntax caused a space to be inserted at the beginning of the second and subsequent lines. I'm already generating the array elements with a terminating newline, so I had to use:
print FILE join( "", @array );
To get what I wanted.
Thanks though, for helping me to think outside of the looping concept.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Printing an array using while loop
by AnomalousMonk (Archbishop) on May 19, 2020 at 23:06 UTC |