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.
In reply to Re: How would you rewrite this?
by bv
in thread How would you rewrite this?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |