in reply to Re^2: Formatting Text...Again
in thread Formatting Text...Again

You shouldn't put your format in a block (the 'if' statement), and you should not have leading whitespace (or anything else) before the actual format string, otherwise it will appear in the output.
the 'dot'(.) which terminates the format MUST be at the beginning of a line, otherwise it will go to end-of-file looking for it.
Perl is free-format almost everywhere except in format. ;-)