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

Exegesis 7: Dynamic Headers

Thread Next
From:
Gregor N. Purdy
Date:
February 28, 2004 07:05
Subject:
Exegesis 7: Dynamic Headers
Message ID:
1077980696.23692.27.camel@borg.focusresearch.com
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.



Regards,

-- Gregor

-- 
Gregor Purdy                            gregor@focusresearch.com
Focus Research, Inc.               http://www.focusresearch.com/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About