No such thing as a small change | |
PerlMonks |
Re: Re: PerlMonks MUD in progressby l2kashe (Deacon) |
on Jul 14, 2003 at 12:49 UTC ( [id://273959]=note: print w/replies, xml ) | Need Help?? |
Heh, fight the good fight brother.. ;) Seriously though. I too was fairly overwhelmed by the initial docs. Until you really grok what is available with POE it all seems so daunting. The way I got over it was I grabbed a perl based mud from sourceforge (I believe its called poe-mud, or some such), and hit http://poe.perl.org. On the poe site there is a simple chat server that I used as my base, and I have been extending since. If memory serves this is all it takes to get a full fledged TCP based server up and functional. ready? So the server has predefined events, when those events happen the routines referenced on the right are called. In regards to the heap, as far as I have been able to understand it the heap is just that. A session's very own memory space. So that in sub_A you could set $heap->{some_key} = 1, and in sub_B do if ( $heap->{some_key}). The heap is there to get around shared memory issues I think. At any rate, stick with POE. I know its disconcerting, but the beauty and power of those modules are simply breathtaking for me. At some point I do believe I will be helping that project out, as it is so useful. Spend time reading POE::Kernel, and POE::Session. Once you really grok those 2 modules, then the rest just kind of falls into place. Also grab something written using POE and pull it apart, play with it, and make something slightly different. At some point the light will come on, and you will probably say "Holy @(#$, thats all it takes to do that?!?" Update: altered poe.perl.com -> poe.perl.org :P MMMMM... Chocolaty Perl Goodness.....
In Section
Meditations
|
|