NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Jul 15, 2010 at 12:22 UTC
  • Comment on Reaped: Space character when using push function on arrays

Replies are listed 'Best First'.
Re: Space character when using push function on arrays
by Anonymous Monk on Jul 15, 2010 at 12:12 UTC
    print "@array"; is equivalent to[0] print join(($"//), @array);, and $" eq " " is true by default.

    Try print @array; instead, which is equivalent to print join(($,//''), @array);

    0: Using Perl 5.10-and-greater's undefined-or // operator.