Subject: | Supressing the Title |
Hi there. Thank you for PostScript::Calendar -- I was looking for
PostScript modules on Cpan for creating a calendar and was amazed to
find that your module already produces exactly the kind of calendar I
was looking for.
Couple of very minor bugs: I originally tried to call the constructor
with:
title => ''
to suppress the title (I'm glueing together several sheets to form a
wall planner, without gaps between the months). Unfortunately this was
the same as not specifying the title at all and triggered the default
title.
I was easily able to work round this by specifying:
title => ' '
but I thought I'd let you know in case you want to fix this. The Perl
5.10 defined-or operator would be really handy here, but I think if you
change line 116 from this:
title => ($p{title} || sprintf '%s %d', Month_to_Text($month),
$year),
to this:
title => defined $p{title} ? $p{title}
: (sprintf '%s %d', Month_to_Text($month), $year)),
that should fix it.
Cheers.
Smylers