Subject: | Decode_Month($1) does not work |
Date: | Wed, 11 Aug 2010 15:50:48 +0900 |
To: | bug-Date-Calc-XS [...] rt.cpan.org |
From: | Ansgar Burchardt <ANSGAR [...] cpan.org> |
Hi,
I'm forwarding a bug report from Debian [1] that is still reproducible
with Date::Calc 6.3 and Date::Calc::XS 6.2 I just installed from CPAN:
Using $1 as a parameter for Decode_Month (and likely other functions)
does not work. The following code fails:
use Date::Calc qw( Decode_Month );
"Oct" =~ /(.*)/;
Decode_Month($1);
with this message:
Date::Calc::Decode_Month(): argument is not a string at -e line 1.
This is specific to the XS version and using $<digits> instead of a
string, that is Decode_Month($1) does not work, but Decode_Month("$1")
works fine.
Regards,
Ansgar
[1] <http://bugs.debian.org/558272>