in reply to How to split, join and trim leading / trailing white space
Your posts on the topic make it so much harder and weirder than it should be–
moo@cow~>perl -CSD -le '$_ = " \N{U+5317}\N{U+4EB0} "; print "<$_>"; s/\A\s+|\s+\z//g; print "<$_>"; print join " ", split //;'
< 北亰 >
<北亰>
北 亰
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to split, join and trim leading / leading white space
by haukex (Archbishop) on Sep 06, 2017 at 08:37 UTC | |
|
Re^2: How to split, join and trim leading / leading white space
by thanos1983 (Parson) on Sep 06, 2017 at 08:12 UTC |