in reply to Writing to a file using Formats
The answer can be found in the manpage to select:
"Second, references to variables related to output will refer to this output channel".
See also the example directly below that sentence.
Since you define the format for STDOUT (before the select() call) no format is defined for FILE. Solution: Move the format definition after the select()
UPDATE: Since no one else seemed willing to risk brain damage to answer your second question I had to do it myself: Setting $- to 0 will force a new page on the next write. This is described in write
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing to a file using Formats
by biohisham (Priest) on Aug 01, 2009 at 23:29 UTC | |
by jethro (Monsignor) on Aug 02, 2009 at 00:22 UTC |