The code I am practising with is the following:
#!/usr/bin/perl -w use CGI qw(:standard); use Date::Calc qw(:all); use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use HTML::AsSubs; use HTML::Element; use HTML::CalendarMonth; $c = new HTML::CalendarMonth ( month => 2, year => 2003, bgcolor => 'white', ); $c->extent($c->maxrow + 2, $c->maxcol +2); $c->all->attr(bgcolor => 'cyan'); $c->item($c->month)->wrap_content(font({size => '+2'})); $c->item($c->year)->wrap_content(strong()); $c->cell(0,2)->attr(rowspan => 2); $c->cell(0,2)->attr(colspan => 7); $c->cell(0,2)->push_content(em(font({ size => +2 }, 'The calendar is part', br(),'of this table'))); print $c->as_HTML;
If I insert   last_row(); after the print, for example I get the error: Undefined subroutine &main::last_row called at ./calMonth1.pl line 33.

The reason I am looking at last_row is that then I might be able to define some parameters using a conditional statement.

If you perceive that I am guessing you wouldn't be far wrong... :)


In reply to Re: Re: HTML::CalendarMonth - printing a consistent (6) rows for days of the week by jonnyfolk
in thread HTML::CalendarMonth - printing a consistent (6) rows for days of the week by jonnyfolk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.