Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: How to run POE as a daemon

by hossman (Prior)
on Oct 02, 2002 at 00:39 UTC ( [id://202158]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to run POE as a daemon
in thread How to run POE as a daemon

This is not a daemon:
while (1) { print "Enter a number: "; $Number = <STDIN>; chomp($Number); print "You entered - $Number.\n"; }
yet you would have me believe it is.

No, I don't consider that a daemon because it's actively soliciting information on a handle (or port, or file, etc...) as soon as it starts. I would however consider this to be a very simple daemon...

while (1) { $Number = <STDIN>; chomp($Number); print "You entered - $Number.\n"; }

...because it passively waits for a connection on a handle (or port, etc...) before doing anything. it's not a very useful daemon because it's single threaded ... but lots of daemons can run as single threads.

But none of this is really helping you achieve what you want, so i guess we'll just agree to disagree.

In the mean time, perhaps Proc::Daemon would be of interest to you?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://202158]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-12-03 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found