in reply to Re: Awake from sleep()
in thread Awake from sleep()

Sounds like the socket solution might work. I mentioned below (in another reply) that the code needs to be platform independent. Is this possible with a socket? And, do you think adding socket communication would be overkill?

until ($time_to_die) { # listen on socket for N seconds # check files, client, etc }

Replies are listed 'Best First'.
Re: Re: Re: Awake from sleep()
by John M. Dlugosz (Monsignor) on Nov 04, 2002 at 23:00 UTC
    How about a pm module that provides for simple blocking event flags. It can contain platform-specific code for known cases, and sockets for all else. That's like File::Copy, which uses native primitives in those cases where it can, and does it itself if it must or doesn't know of a better way.