No it doesn't, try this:
my @array; $i=0; while($i<5) { push(@array,$i); $i++; } print join("|",@array);
You're getting confused by the stringification of an array. In other words, expanding the array inside a double-quoted string is adding the spaces.
...roboticus
In reply to Re: Space character when using push function on arrays
by roboticus
in thread Space character when using push function on arrays
by iamravikanth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |