in reply to Arrays not being manipulated

A few comments, in no particular order:

Replies are listed 'Best First'.
Re^2: Arrays not being manipulated
by thor (Priest) on Jan 01, 2005 at 06:52 UTC
    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:
    print join("\n",@organism), "\n"
    or even
    { 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

      Not quite. Assume that @a=(1,2,3). Doing it your way will produce "123\n"

      Not quite.
      @a=(1,2,3); print "@a";
      will produce "1 2 3";
        Fair enough, but still not to the OPs spec, which was my point. :)

        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