Re: Life, The Universe, and env variables

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Thu Mar 10 2005 - 20:54:50 AKST

On Thu, 10 Mar 2005, Enkidu wrote:

> This is precisely what I wanted to do. I overlooked using files as a medium,
> though. Now I just have to find a good Perl resource... Thanks for your help.

:-) I do something similar in mod_perl handlers to detect when a configuration
file has changed to avoid parsing per request. In your case, you might
set $SIG{ALRM} to a sub reference that compares a stored mtime to a current
(stat $file)[9], and use alarm($n) in the handler to reset the timer.

        --Arthur Corliss
          Bolverk's Lair -- http://arthur.corlissfamily.org/
          Digital Mages -- http://www.digitalmages.com/
          "Live Free or Die, the Only Way to Live" -- NH State Motto
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Mar 10 20:54:48 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 10 2005 - 20:54:48 AKST