I quite like this version (though I'd not submit it as a homework answer):
$_ = "The quick brown (it's a slightly reddish brown) fox jumps over t +he lazy dog"; split; print join "\n", @_;
Same output as BrowserUK's code purports to give.
In reply to Re: how to split string(many words in one line) in a word?
by GrandFather
in thread how to split string(many words in one line) in a word?
by talkjay83
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |