in reply to format issues

From "perldoc perlform" (emphasis is mine):
A single "." in column 1 is used to terminate a format.
Your format-terminating period appears to be in column 8.

     "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom

Replies are listed 'Best First'.
Re^2: format issues
by cdarke (Prior) on Jan 04, 2008 at 09:53 UTC
    When the format statement is parsed it will run right through to end-of-file (or __END__) looking for the . in column 1. You can't "scope" format statements, and you can't indent them, so I find they are best placed in a section of the file on their own at the front or end, outside of subroutines.