in reply to Faking a ssi last modified command

A less expensive method:
use POSIX 'strftime'; print "Last Modified: ", strftime("%a, %b %e, %Y", localtime(stat("chiron_test.cgi"))[9]);
See POSIX for information on strftime, or check your system's local strftime manpage for format options.

Replies are listed 'Best First'.
Re: Re: Faking a ssi last modified command
by merlyn (Sage) on Feb 08, 2001 at 03:49 UTC
    You can even get rid of the hardcoded name, and use either $0 there, or DATA as long as you have an __END__ and haven't closed it yet.

    -- Randal L. Schwartz, Perl hacker

      or __FILE__ for that matter...