Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to run this script out of cron nightly to generate the calendars.
I'm sure that it's my lack of experience, but I can't quite see how to accomplish this. Should I be using a different module? Here's what I thought should work:
#!/usr/local/bin/perl -w use HTML::CalendarMonthSimple; use strict; use vars qw($cal $file $date $mm $dd $yyyy); while (my $line = <DATA >) { chomp $line; ($file, $date) = split('\.', $line); $mm = substr($date,4,2); $dd = substr($date,6,2); $yyyy = substr($date,0,4); $cal = new HTML::CalendarMonthSimple('month'=>$mm,'year'=>$yyyy); $cal->setdatehref($dd, "/home/trixee/cal.txt",); } print $cal->as_HTML(); __DATA__ file1.20020801 file2.20020802 file3.20020803
TIA,
Trixee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: HTML calendar w/dates = links
by jeffa (Bishop) on Aug 13, 2002 at 02:13 UTC | |
by Tuna (Friar) on Aug 13, 2002 at 03:15 UTC | |
by Anonymous Monk on Aug 13, 2002 at 15:15 UTC | |
by jeffa (Bishop) on Aug 13, 2002 at 15:37 UTC | |
|
Re: HTML calendar w/dates = links
by blink (Scribe) on Aug 13, 2002 at 03:09 UTC |