C
Cyde Weys
This is a pretty simple question, and I know there's a way to
brute-force it by just giving it a look-up table of the number of days
in each month, but I was wondering if there's a more elegant way
(perhaps using some Perl calendar library or something?)
Anyway, I want to write a Perl script that says how many days are left
until a certain date. A sort of count-down timer, if you will. It will
be using some sort of system clock call to get the current date (also,
how do you do that?)
Thanks for the help. I know this is pretty easy stuff, but I'm a
beginner at Perl.
brute-force it by just giving it a look-up table of the number of days
in each month, but I was wondering if there's a more elegant way
(perhaps using some Perl calendar library or something?)
Anyway, I want to write a Perl script that says how many days are left
until a certain date. A sort of count-down timer, if you will. It will
be using some sort of system clock call to get the current date (also,
how do you do that?)
Thanks for the help. I know this is pretty easy stuff, but I'm a
beginner at Perl.