Skip Menu |

This queue is for tickets about the HTML-CalendarMonth CPAN distribution.

Report information
The Basics
Id: 17806
Status: resolved
Priority: 0/
Queue: HTML-CalendarMonth

People
Owner: MSISK [...] cpan.org
Requestors: cpan [...] fireartist.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.17
Fixed in: (no value)



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