Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Infinite LOOP and reading from STDIN

by Theodore (Friar)
on Aug 14, 2019 at 07:55 UTC ( #11104433=note: print w/replies, xml ) Need Help??


in reply to Infinite LOOP and reading from STDIN

Hi,

I did that for a MUD some years ago the original was written in REXX back in the 80's, out of nostalgia I recreated it in Perl using the old data files. I used IO::Async::Loop for the main event loop.

Code snippets:

use IO::Async::Loop; ..... our $loop = IO::Async::Loop->new; $loop->add( IO::Async::Timer::Periodic->new( # This will call the main operational code of Muda: interval => 1, notifier_name => 'MAIN', on_tick => \&mainMudaTick )->start ); ..... $loop->run;

The full code can be found here: https://www.grcrun11.gr/files/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2023-03-23 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?