in reply to RegExp quick question

Me again. I'm having more trouble... so I'll explain my question again more clearly as well. I'm trying to remove periods from words like this: Foo. -> Foo Foo.Bar. -> Foo.Bar Another question: Why would split return "1" as a result?

Replies are listed 'Best First'.
RE: Re: RegExp quick question
by btrott (Parson) on Apr 04, 2000 at 02:55 UTC
    Are you only trying to remove periods from the ends of words, then? Try this:
    $word =~ s/\.$//;