http://qs1969.pair.com?node_id=543061


in reply to getting Date calculation in simpler way

But people who are sitting above me, strictly told that I should not use modules.

Are you not allowed to use a keyboard, either? I mean, punchcards should be sufficient, right?

Modules are written for a reason. You will want to use DateTime, Date::Calc, or Date::Manip. They have been written by people with an interest in the topic and the code has been vetted on over 100 different OSes by people with an interest in the topic. In other words, the code is nearly bug-free, fast, and completely useful.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?