in reply to How to subtract month without using module?
Well, you could copy the relevant code from Date::Calc (here) and paste it into your application.
However, I am curious as to what the reason is for not using any modules? If it is due to distribution concerns (i.e. desire to distribute one file), you should look into PAR, which may solve that issue.
If it is a question of not requiring someone to download and install CPAN modules, you could always include the Date::Calc module in your code distribution.
Date math is notoriously tricky and caveat-ridden; why do you need to reinvent the wheel?
|
|---|