in reply to Re: help substituting whitespaces?
in thread help substituting whitespaces?

Try replacing the /s with a /g.
$description =~ s/\s+/ /g;

Replies are listed 'Best First'.
Re: Re: Re: help substituting whitespaces?
by Anonymous Monk on Aug 07, 2003 at 15:01 UTC
    Ah -- dat's it. Global is what did it. I had the /s stuck in there from a while back (copy and paste) and totally forgot about it, and 'global' totally slipped my mind in the process. Fantastic -- as always, the help is much appreciated. If this lesson has taught me one thing, it's to adhere strictly to a template... it's been driving me nuts getting this stuff cleaned up. :) PS - I finally registered. I'm the anonymous monk that posted.