Perl Monk, Perl Meditation | |
PerlMonks |
Re: How can I alert perl to a file writeby hiseldl (Priest) |
on Dec 10, 2002 at 21:17 UTC ( [id://218916]=note: print w/replies, xml ) | Need Help?? |
The easiest way I can think of is to use the Msg.pm module from Advanced Perl Programming (it's in the Networking directory). In your running process you would put the listener code (ok, so it's more of a server), i.e.:
From the text, "The script calls new_server to create a listening socket (the program's network address) and then calls event_loop, an event dispatcher, which is a thin wrapper over select." And the client code that would send a message to your running process (server):
Use the server and client scripts from the book's example code because the code here is for illustrative purposes. --
In Section
Seekers of Perl Wisdom
|
|