Mar 29, 2003, 4:13 AM
Post #1 of 2
I want to do the following:
Latest reply bullet
There is a list of files all showing the date and time of creation.
I need to have a bullet appear next to the very latest one.
The list looks like this (example) - the bullet appears on the end:
Subject: Author Replies Date Latest Reply
Four Me 0 02/05/2003-08:22
Three Me 1 02/05/2003-08:22 02/05/2003-08:22
Two Me 1 02/05/2003-08:22 03/19/2003-14:04 •
One Me 1 02/05/2003-08:22 02/05/2003-08:22
To do this I need to have a sub-routine run as the script opens which will:
Find the file (all in one folder named 'messages') with the latest date and time
(file has this in--- <date>03/19/2003-14:04</date> ---the creation date/time of that file).
Once that data is found, the bullet is placed next to it on the list.
No other files in the list will have a bullet.
The latest subject is always at the top so would not need a bullet.
$new = "<b>•</b>"; # This is the bullet
$todaysdate # is the variable for the date/time
I assume this needs to compare the $todaysdate with latest date listed in the files.
I know a little bit about Perl but do not know how to do this.