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,
Erik

Replies are listed 'Best First'.
Re: Re: Net::IRC problem
by Anonymous Monk on Mar 16, 2002 at 03:58 UTC
    Ok, I'll try that. Thanks a lot for your help, up until now, no one has had the slightest clue as to what I was talking about. ;) Also, about the indentation issue and the curly brace...I have the curly brace in my code, and my code is also completely indented...it looks really nice...lol. I guess something got messed up when I posted it here, not that I expect you to believe me or anything, but my code really does look nice. =) Thanks again for your help!