develooper Front page | perl.perl6.language | Postings from February 2004

Exegesis 7: Dynamic Headers

Thread Next
Gregor N. Purdy
February 28, 2004 07:05
Exegesis 7: Dynamic Headers
Message ID:
In "From the crown of his head to the sole of his foot..." (clearly
a reference to a Gilligan's Island episode where Lovey said something
similar :), we have:

  :header{ ..., odd => "Act, $act, Scene $scene    ...", ... }

and below, text indicating that it will

  "prepend the act and scene information to the start of any odd page
  (except, of course, the first or the last), ..."

I don't see how that can be. The string will be evaluated and
interpolated at the time the option pair is constructed, most likely
with C<$act> and C<$scene> undef. After that, the same static text
will appear in the header.

I suppose 

  ... odd => sub { "Act, $act, Scene $scene ..." }, ...

would work, though.


-- Gregor

Gregor Purdy                  
Focus Research, Inc.     

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About