Re: first poe program - request for review

2009-04-25 Thread Rocco Caputo
If CLIENTS held Client objects, you could avoid passing $client_id to everything. process_client_command() could be a Client method, as generate_response(). Perhaps: sub handle_requests { my $c = shift; my $mud_client = get_mud_client($c); $mud_client-start() if ( not

first poe program - request for review

2009-04-07 Thread hubert depesz lubaczewski
hi, i just finished writing my first poe program, and since i learn best by hearing/reading about what did i do wrong, or what can be done better - i would like to ask you for a review, and pointing about everything that can be done better/nicer/more poe-ish. program itself can be found in here: