in reply to Replacing whitespaces with a regex
It uses the @array, which makes the code more readable, and PERL's great map function for 1 liners.map {s/\s+$/ /} @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replacing whitespaces with a regex
by choroba (Cardinal) on Mar 04, 2013 at 16:44 UTC | |
by ISAI student (Scribe) on Mar 04, 2013 at 17:16 UTC | |
by topher (Scribe) on Mar 05, 2013 at 01:58 UTC | |
by ISAI student (Scribe) on Mar 20, 2013 at 18:47 UTC |