[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] AllowGllobal/UserTag - I need a help please
>
> require Date::Parse;
> requireDate::Manip;
> require Date::Format;
>
> sub {
> my($duedate)=@_;
>
> my $new_date = &ParseDate($duedate);
> my $date_new=&DateCalc($new_date,"+ 1year",\my $err);
> my @format="%Y-%m-%d";
> my $final_date=&UnixDate($date_new,@format);
> return $final_date;
> }
>
> I is not working. I am getting following message:
>
> Safe: Undefined subroutine &Vend::Interpolate::ParseDate called at (eval
> 106) line 9.
>
> And line 9 in my file is:
>
> UserTag get_date Routine <<EOR
>
The error points to line 9 of the sub, not line 9 of the file.
Try changing &ParseDate() to &Date::Manip::ParseDate(), and the
same for the other date routines, using the appropriate module
name in each case.
Also, a space between 'require' and 'Date::Manip' may help. :-)
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/