Section 3.2.41 of the Camel Book seems to imply that you can put formats in modules just like any other thingy. Formats live in their own namespace and can be qualified with package names, so that answers your first question.
As to variable scoping, you'll just have to be careful. Lexically scoped variables (my $variable;) have to be declared before the format (so before the use ReportFormats; in your case, while dynamically scoped (local $variable;) stuff just has to be declared in the block that calls the write() using the format.
As usual, more information can be found in perlform.
CU
Robartes-
In reply to Re: Modules of Formats
by robartes
in thread Modules of Formats
by Tanalis
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |