in reply to Re^2: variable sees it, array doesn't - stumped!
in thread variable sees it, array doesn't - stumped!

You are right: I thought I was using it someplace, but everywhere I've got it I put something else in before the output of the join.

Either print((join ' ', @array), "\n"); or print (join(' ', @array)), "\n"; or even print join(' ', @array), "\n"; should work better.

Replies are listed 'Best First'.
Re^4: variable sees it, array doesn't - stumped!
by JadeNB (Chaplain) on Jan 01, 2009 at 18:44 UTC
    print (join(' ', @array)), "\n"
    Unfortunately, this one still doesn't work, for the same reason that print (join ' ', @array), "\n" doesn't. An option that I frequently use, though it feels dirty, is print '', (EXPR), "\n".