ok, I think I'm getting it to work, SLOWLY!! 
I also had a stray line from $pat, so chomp took care of that.

I've got a long way to go. :/

Thanks for the tip ray. It help out.

I'm sure I'll be asking more questions as I work on this bot.
Perl is fun. :)

Thanks alot.

On Tue, 2003-08-19 at 17:36, -ray wrote:
> On 19 Aug 2003, Wade wrote:
> 
> > so the line: if ($text =~ /User Connect (.*?)\ /
> > Would watch for "User Connect" text and strip everything after the nick.
> > Leaving me with just a nick to parse.
> 
> Do you want case insensitive matching?  If your file has Mark, and you 
> want to match mark, put an i at the end of your regexp.  And you shouldn't 
> need to escape the whitespace.  Try
> 
> if ($user =~ /$pat/i) {
> and
> if ($text =~ /User Connect (.*?) /)
> 
> > From there it needs to be compared to my file for a match or partial
> > match. This is where my headache beings.
> 
> Try it with just alphanum characters first... all the * and [ ] characters 
> maybe giving your regexp problems.
> 
> Also you are loading the whole file for each connection.  If the bot runs 
> all the time, you could probably load the file once?
> 
> ray

Reply via email to