Subject: | HTML-CalendarMonth - variable warnings under -w |
HTML-CalendarMonth outputs error 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 variables.
61,62c61,62
< my($week, $year) = Week_of_Year($year, $month, $day);
< ($year, $week);
---
Show quoted text
> my($week, $y) = Week_of_Year($year, $month, $day);
> ($y, $week);
This is perl 5.8.8, GNU gcc (mingw) 3.4.5, WinXP SP2