in reply to Beginning to see the light....

I now simply bang out:

print $_ . "\n" foreach @test;

Note that you could further reduce this to:

print map("$_\n",@test);

TIMTOWTDI, natch...

Replies are listed 'Best First'.
Re: Re: Beginning to see the light....
by Anonymous Monk on Jul 11, 2001 at 23:13 UTC
    Or print"$_\n"for@test;
      Same number of chars, but wins if you have more than one of such prints:
      $,=$\=$/;print@test;

      -- Abigail

        And does not require double quoting a reference (albeit implicit). Very neat! thanx
Re: Re: Beginning to see the light....
by Chady (Priest) on Jul 12, 2001 at 11:24 UTC

    guys, didn't you forget about:print join("\n", @test);?

    and unless you're using the return values of map you shouldn't use it


    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

    Chady | http://chady.net/

      Not at all. When using debug prints, I use map and join with equal frequency (depending on my mood and probably depending on surrounding code).

      Also note that I am using the return values of map in my print statement. I wrote print map("$_\n",@test);. If I had written map(print("$_\n"),@test); that would've been map in void context.