Hi, I started with perl not long ago. I am currently coding an IRC bot. I have all the connect code working fine, and it sits on the channel. At the moment, I am trying to make it respond to commands. I am having trouble parsing the lines recieved from the IRC server - they take the form:
:<senders host name> PRIVMSG <#channelname> :<message> I would like to have an if statement which is true when the line recieved is of the above form, and have variables containing the channel and message. At the moment I am using the if statement: if($input =~ /m*PRIVMSG*:/i) , but it is never true. Thankyou very much for any help -- Dave All us base are belong to you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
