DateCalc Problem

2015-08-13 Thread Omega -1911
Hi - Can anyone help me understand why the following does not produce the correct future date? my $exp_date = DateCalc('today', +$membership_period days); It works if I use: my $exp_date = DateCalc('today', +7 days); Any help is appreciated !! Eyes have been looking at the screen for a while

Re: DateCalc Problem

2015-08-13 Thread Shlomi Fish
Hi Omega, On Thu, 13 Aug 2015 06:48:50 -0400 Omega -1911 1911...@gmail.com wrote: Hi - Can anyone help me understand why the following does not produce the correct future date? my $exp_date = DateCalc('today', +$membership_period days); It works if I use: my $exp_date =

overload during match

2015-08-13 Thread Hao Wu
I use a variable which have a method overload to string in regex replace. the result is string only if match success. I thought it should be always string. Could anyone explain how this happen? Thanks. Below is the code use Text::Xslate::Type::Raw; # a wraper of string, provide as_string,