http://qs321.pair.com?node_id=572849

sgifford has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a Perl application that, for various reasons, needs to know how long it's been since the user has been actively using the computer, that is, how long since the last mouse or keyboard activity. I can detect this on Unix with X11::IdleTime and by looking at tty mtime's, and I found a node about detecting idle time on Windows. But I haven't found a way to do this on Mac yet.

Any ideas?

Thanks!!