in reply to Re: Arrays not being manipulated
in thread Arrays not being manipulated
Those loops at the end can be shortened considerably:Not quite. Assume that @a=(1,2,3). Doing it your way will produce "123\n". Doing it the OPs way will produce "1\n2\n3\n". As for me, I'd do it thusly:
or evenprint join("\n",@organism), "\n"
{ local $,="\n"; print "@organism\n" }
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Arrays not being manipulated
by holli (Abbot) on Jan 01, 2005 at 11:29 UTC | |
by thor (Priest) on Jan 01, 2005 at 15:05 UTC | |
by trammell (Priest) on Jan 01, 2005 at 15:53 UTC |