in reply to RE: Re: 30 Spaces- 1 question
in thread 30 Spaces- 1 question

Actually, I had rather taken it as gospel that the string was more than 30 chunks. =) good spot on that.

I still hate throwing the regex engine at this problem tho. Maybe I'll Benchmark em all and post that. Make me feel better for being a goof.

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
(dchetlin) Re(4): 30 Spaces- 1 question
by dchetlin (Friar) on Oct 09, 2000 at 11:07 UTC

    I wouldn't have posted if it was just the problem with your split solution, because it's highly minor and can be easily fixed. I was more concerned with the REx one because it always leaves off the last chunk in the string unless the string ends in whitespace.

    I would definitely be interested in seeing a Benchmark of this. Keep in mind, though, that split uses the REx engine just as much as m/// or s///.

    -dlc