in reply to help substituting whitespaces?
should work AFAIK, i don't think the 's' modifier at the end is strictly needed, Which variation have you tried? And are you just trying to replace multi-spaces with single ones at that step? Try a debug by replacing with a hyphen instead?$description =~ s/\s*/ /s; $description =~ s/\s+/ /s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: help substituting whitespaces?
by Abstraction (Friar) on Aug 07, 2003 at 14:29 UTC | |
by Anonymous Monk on Aug 07, 2003 at 15:01 UTC |