Bug#558272: Date::Calc::Decode_Month(): argument is not a string

Ansgar Burchardt ansgar at 43-1.org
Wed Aug 11 06:55:21 UTC 2010


tags      558272 - fixed-upstream
forwarded 558272 https://rt.cpan.org/Ticket/Display.html?id=60233
thanks

Hi,

> $ echo Oct | perl -p -e 'use Date::Calc qw(Decode_Month); s!(\w+)!Decode_Month($1)!e'
> Date::Calc::Decode_Month(): argument is not a string at -e line 1, <> line 1.

This is not fixed in the latest upstream release.  I installed
Date::Calc 6.3 and Date::Calc::XS 6.2 from CPAN and the problem is still
present.

It is, however, limited to the XS implementation and can easily be
worked around: just use "$1" (with quotes) instead of $1.

Regards,
Ansgar





More information about the pkg-perl-maintainers mailing list