$str = "what's up, doc?"; for (split /(\W+)/, $str) { print "<$_>\n"; } __END__ <what> <'> <s> < > <up> <, > <doc> <?>
In reply to RE: A splitting question
by japhy
in thread A splitting question
by BigJoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |