With no 'chomp' in neither line 98 nor 139, I get both newlines in the output. So it seems that 'chomp' removes only one newline. My perl version is v5.16.3, in case it may be relevant.
With no 'chomp' in neither line 98 nor 139, I get both newlines in the output.
So it seems that 'chomp' removes only one newline.
My perl version is v5.16.3, in case it may be relevant.