I'd prefer this, actually:
for ($string) { tr/ '/_/d; print } [download]
In reply to Re^2: stripping characters from a string by ayrnieu in thread stripping characters from a string by Anonymous Monk