Skip to Main Content
Wicked Cool Perl Scripts
book

Wicked Cool Perl Scripts

by Steve Oualline
February 2006
Intermediate to advanced content levelIntermediate to advanced
304 pages
6h 16m
English
No Starch Press
Content preview from Wicked Cool Perl Scripts

#4 Date Reminder

The commercial calendar programs out there, such as Microsoft Outlook, do a good job of reminding you of your wife's birthday, on her birthday, when it's much too late to get her a present. What's really needed is a program that reminds you when an important date is approaching.

It would also be nice if the program could also tell you how many days have elapsed since an important event, such as, for example, how many days since you sent out a rebate form.

The Code

 1 # 2 # Usage: remind.pl [<calendar-file>] 3 # 4 # File format: 5 # date<tab>delta<tab>Event 6 # 7 # Date -- a date 8 # delta -- 9 # -xxx -- Remind after the event for xxx days 10 # +xxx -- Remind before the event for xxx days 11 use strict; 12 use warnings; 13 use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Perl Debugged

Perl Debugged

Peter Scott, Ed Wright
Perl & LWP

Perl & LWP

Sean M. Burke
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 1593270623Catalog PageErrata