- or download this
$str =~ tr/-/ /; #replace - with a space
$str =~ tr/a-zA-Z/ /cs; #replace non letter with a space
- or download this
$w =~ s/(\p{isLower})(\p{isUpper})/$1 $2/g or
$w = ucfirst( lc($w) );
- or download this
#!/usr/bin/perl
use strict;
...
Yao W-M.
Yao W. -M
Yao W. -M.