06
September
2013
Printing blank lines in Perl
Today I found out that my old XML Online Liner Post appears also with questions such as "how to print one blank line in perl". Of course, XML serializing does not help too much with this beginners' question. But it is dead easy so I write this recipie.
The solution
Either use old school Perl (works even on very, very old servers)
print "\n"; # note the double quotes!
or modern Perl (works practically everywhere but very very old servers).
use v5.10; # you always want to put this line to the beginning of your file!
say;