Strangely when I execute a code in Perl, the output always appears on the left side of my command line. For example.
admin@admin-machine:~$ perl my_program
1 2 3 4 5 admin@admin-machine:~$
How do I get it to show output on a line by itself like the following?
admin@admin-machine:~$ perl my_program
1 2 3 4 5
admin@admin-machine:~$
You need to add a newline (\n) to the end of your print statements. E.g.