Try print "$i ";.
Cheers,
JohnGG
In reply to Re: Spaces between outputs. by johngg in thread Spaces between outputs. by CPTQuesoXI