http://www.perlmonks.org?node_id=1210152


in reply to Spaces between outputs.

Try print "$i ";.

Cheers,

JohnGG