in reply to This is just wonky...

Why the /g modifier? /g returns a list of all matches in list context and tries to match from the previous position in scalar context. That can mess you up if that's not what you're trying to do. Remove the g.

Replies are listed 'Best First'.
Re: Re: This is just wonky...
by Sullust (Acolyte) on Aug 07, 2001 at 03:04 UTC
    Okay, removing the /g did get rid of the problem. I use the /g habitually as I use s/// more than m// so I didn't even consider it.

    It's still kind of weird though, and it would have really stunk if I had wanted to do a word count, but I'll get mad at that later ;)

    Thanks for the help