Calendar Programs

Like most people, I need to help keeping tracking of dates. I have trouble with two types of dates: the ones in the future (upcoming events) and the ones in the past.

The cal.pl program is designed to help me. It examines a calendar file and decides whether an event is approaching. It then writes out a warning message. The default format of an entry in this file is

<date>    <Event>

For example:

1/27 Wife's Birthday

This causes the program to warn me seven days before my wife’s birthday.

But for some events, I want more advanced warning. So another optional field is added to tell the program to give me that much extra time. The format of this field is +<warn-time >. For example:

1/27 +30 Wife's Birthday
gives me 30 days warning ...

Get Perl for C Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.