here's a cgi i whipped together with Calendar::Simple

I've never really seen a sasco calendar, but from what i gathered after a quick search i think this is what you're looking for?
#!/usr/bin/perl use strict; use Calendar::Simple; print "Content-type: text/html\n\n"; print "<html><body><table style='width:100%;border-collapse:collapse;b +order:1px solid black;'>"; my $cal; my $maxcols=0; for (1..12) { my @month = calendar($_); $cal .= "<tr><td>$_:</td>"; my $colcount=0; for (@month) { my $week = $_; for (@$week) { $cal .= "<td style='border:1px solid black;wid +th:20px;height:20px;'>" .($_ ? (sprint +f "%2d",$_) : ' ')."</td>"; $colcount++; } } $cal .= "</tr>\n"; $maxcols = $colcount if $colcount > $maxcols; } my @days = qw (Sun Mon Tues Wed Thurs Fri Sat); my $calheader = join '',map {"<td style='width: 10px;'>".$days[$_ % sc +alar @days]."</td>"}(0..$maxcols); print "<tr><td>&nbsp;</td>$calheader</tr>\n$cal</table></body></html";
update: scalar vs. $#

In reply to Re: Calendar Module by bageler
in thread Calendar Module by Anonymous Monk

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.