in reply to HTML calendar w/dates = links
Also, you are creating a new HTML::CalendarMonthSimple object with each iteration of the while loop. You will need to change that to read the first line from <DATA> first, then create the table, then add the links:$dd = int(substr($date,6,2));
my $line = <DATA>; ($yyyy,$mm) = $line =~ /\.(\d{4})(\d\d)/; $cal = new HTML::CalendarMonthSimple('month'=>$mm,'year'=>$yyyy); do { chomp $line; ($file, $date) = split('\.', $line); $dd = int(substr($date,6,2)); $cal->setdatehref($dd, "/home/trixee/cal.txt",); } while ($line = <DATA>); print $cal->as_HTML();
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: HTML calendar w/dates = links
by Tuna (Friar) on Aug 13, 2002 at 03:15 UTC | |
|
Re: (jeffa) Re: HTML calendar w/dates = links
by Anonymous Monk on Aug 13, 2002 at 15:15 UTC | |
by jeffa (Bishop) on Aug 13, 2002 at 15:37 UTC |