http://qs321.pair.com?node_id=472063

dReKurCe has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Monks:

I am new to object orientation and am learning by example. I have read the Net::IRC documentation and discovered along the way that POE provides a better solution. The following code is from the module documentation but alas I am missing the plot. The following code generates:
Can't call method "post" on an undefined value at POEirc line 14. POE::Kernel's run() method was never called.

Any advice on how to tweak this could enrich my knowledge of OO . thanks.
use POE::Component::IRC; my ($irc)=POE::Component::IRC->spawn()or die; $irc->yield ('register' => 'all'); $irc->yield('connect', { Nick => 'n3u7bot', Server => 'irc.2600.net', Port => 6667, Username => 'HAL', Ircname => 'darkphiber', } ); $kernal->post( 'my client ', 'join', '#2600tn' );