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


in reply to Messed up printing

try this:
print "hello world\n";
Without the "\n", your shell prompt is probably overwriting the output. The 27 spaces is enough on your system such that the prompt doesn't overwrite it.