in reply to Re: how to split string(many words in one line) in a word?
in thread how to split string(many words in one line) in a word?

I think that BrowserUK might meant to say something like:

my @words = split ' ', "The quick brown (it's a slightly reddish brown +) fox jumps over the lazy dog"; print "$_\n" for @words;

Replies are listed 'Best First'.
Re^3: how to split string(many words in one line) in a word?
by sauoq (Abbot) on Oct 07, 2005 at 04:51 UTC

    Or, maybe he just didn't mention that you should run perl with -l on the command or shebang line. ;-)

    -sauoq
    "My two cents aren't worth a dime.";