CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Latest reply bullet


New User

Mar 29, 2003, 4:13 AM

Post #1 of 2 (252 views)
Latest reply bullet Can't Post

I want to do the following:

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.

Variable names
$new = "<b>&bull;</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.

Thaumaturge / Moderator

Mar 31, 2003, 3:45 AM

Post #2 of 2 (244 views)
Re: [tedh] Latest reply bullet [In reply to] Can't Post

I'd guess that the reason you're not getting any replies to your question is because it's really not very clear what you want.

If you'd like to have another go at describing your problem then I'm sure we can help you.

Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives