X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=current%2Flib%2FHTML%2FCalendarMonth%2FDateTool%2FDateCalc.pm;fp=current%2Flib%2FHTML%2FCalendarMonth%2FDateTool%2FDateCalc.pm;h=17c3ed5dea5c9c5cb032b138baaa14cf591e1649;hb=ddb50b302aac3e5b05ddd17c736ed8f58e623584;hp=97db69135b85ea27cd0a2580636c38a809f4de32;hpb=1aced5435f99c2faf1af0eca945374099063fbc5;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/current/lib/HTML/CalendarMonth/DateTool/DateCalc.pm b/current/lib/HTML/CalendarMonth/DateTool/DateCalc.pm index 97db691..17c3ed5 100644 --- a/current/lib/HTML/CalendarMonth/DateTool/DateCalc.pm +++ b/current/lib/HTML/CalendarMonth/DateTool/DateCalc.pm @@ -9,7 +9,7 @@ use vars qw(@ISA $VERSION); @ISA = qw(HTML::CalendarMonth::DateTool); -$VERSION = '0.01'; +$VERSION = '0.02'; use Date::Calc qw(Days_in_Month Day_of_Week Add_Delta_Days Weeks_in_Year Week_of_Year Week_Number Mktime @@ -58,7 +58,8 @@ sub week_of_year { $day || croak "Day required.\n"; $month ||= $self->month; $year ||= $self->year; - my($week, $year) = Week_of_Year($year, $month, $day); + my $week; + ($week, $year) = Week_of_Year($year, $month, $day); ($year, $week); }