in reply to How would you rewrite this?
My take:
(my $chosen_day = "April 1, 2009") =~ s/\s\s/ /;
Of course, depending on what you are trying to sanitize, you might want to throw a /g on there, or use s/\s+/ /, or something.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How would you rewrite this?
by Anonymous Monk on Aug 30, 2009 at 20:20 UTC | |
by bv (Friar) on Aug 30, 2009 at 20:29 UTC | |
by Anonymous Monk on Aug 30, 2009 at 20:44 UTC |