Mailing List Archive

SSI flastmod substitute?
Hi all,

I want to display the last modification date of the main script
aka HTML page like the SSI command flastmod.
My solution so far is:
[-
use Time::gmtime;
use File::stat;
-]

Last modified: [+ localtime(stat($req_rec->filename())->mtime); +]
or
Last modified: [+ localtime(stat($0)->mtime); +]
or
Last modified: localtime(stat($ENV{PATH_TRANSLATED})->mtime); +]
or
Last modified: localtime(stat(__FILE__)->mtime); +]

My questions:
1. Is there a shorter, more elegant way? Perhaps in one line?
2. Apache did load the script file before. Does the Apache
request object remember the mtime of the script file?
3. Is it better to chain Apache::SSI with Embperl? And how?

I don't like a second stat of every HTML-file regarding
server performance.
--
Frerk Meyer mailto:fm@channel-one.de
Channel.One http://www.channel-one.de