in reply to Net::IRC problem
First off, your code won't even compile - this may be because there were some mistakes transfering to the browser, I dunno. You're missing the right curlie to end the on_public sub. Second, your code has no indentation and declares some subs in the middle. Now, we can argue about sub declaration all we want, (and frankly, you can do it however you want, and since they are handlers it is probably reasonable) but some indenting, however you choose to do it, would make life easier. :-)
Now, your first problem is with the module - it is what fails. Now if a connection isn't made, then $conn isn't an object - that's your second problem. This is why add_handler won't work - the connection fails, so the return isn't a connection object. I don't know why it fails - Net::IRC is called a work in progress. Try loading a fresh copy of the module and it's friends and try it all again. If that doesn't work, send a bug report to the author.
Cheers,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Net::IRC problem
by Anonymous Monk on Mar 16, 2002 at 03:58 UTC |