in reply to Replacing double spaces (was: Reaplcing double spaces)
Here's my favorite way of doing that. The line is assumed in $_:
Double-quoted space is magical in split. It eats all whitespace.join '|', split " ", $_;
Update: Bah:<code> join '|', split /\s\s/, $_; <code>
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reaplcing double spaces
by CubicSpline (Friar) on Sep 23, 2001 at 06:51 UTC |