in reply to Last Mod using server side perl

Non Perl answer:

Use SSI if it is enabled on your web host. and included the follwing in your html.

<!--#echo var="LAST_MODIFIED"-->.

or

<!--#flastmod file="mypagename.shtml" -->

From Apache.org and Microsoft

To do this in perl on static pages you would need ssi enabled and ssi has built in functions to do it so the script would not be needed.

Update: For clarity the last paragraph should probably best read.
To do this in perl on static pages you would need ssi enabled. Because ssi has built in functions to do it, you would not need a perl script to create this.

Replies are listed 'Best First'.
Re: Re: Last Mod using server side perl
by Anonymous Monk on Dec 31, 2003 at 19:05 UTC
    Still not sure how I would do it. I understand the stat function but how can I get perl to work on a HTML page?
      You either use SSI (in which case better solutions are outlined above) or you have perl print the entire webpage.