> PRL> Likewise, if the "footer" option is specified with a string
   > PRL> value, that string is used as the footer of every page
   > PRL> generated. If it is specified as a reference to a subroutine,
   > PRL> that subroutine is called at the I<start> of every page and
   > PRL> its return value used as the footer string. When called, the
   > PRL> footer subroutine is passed the current page number.
   > 
   > I can see why. But is there someway to be able to do dictionary like
   > from - to in a header/footer?
   > 
   > Magic Variables? Point the format at which variable(s) to watch
   > 
   >    footer => "$From{name} - $To{name}";

This would work:

        footer => sub { "$From - $To" }

except there's no way of setting the $From and $To variables as each page is
formatted. I don't think C<format> by itself is the right solution for this
problem, unless I add some kind of weird monitoring option. 

That's probably beyond the scope of this RFC at present.

   
   > Would it be worthwhile to have a quick and dirty way of having the
   > formatter determine the max width and then allow the header/footer
   > to simply indicate left|center|right text?

I have a good idea for this. I'll add it to the next version of the RFC.

Thanks,

Damian

Reply via email to