Subject: | HTML-ElementTable - variable warnings under -w |
HTML-ElementTable causes warnings when run with "use warnings"
"my" variable $year masks earlier declaration in same scope at
C:\WINDOWS\Temp\cpan\build\HTML-CalendarMonth-1.17\blib\lib/HTML/CalendarMonth/DateTool/DateCalc.pm
line 61.
The following patch fixes it, by renaming one of the arrays.
374c374
< my @rows;
---
Show quoted text
> my @content;
387c387
< push(@rows, $row);
---
Show quoted text> push(@content, $row);
390c390
< $tree->push_content(@rows);
---
Show quoted text> $tree->push_content(@content);
This is perl 5.8.8, GNU gcc (mingw) 3.4.5, WinXP SP2