in reply to Re: Counting the number of items returned by split without using a named array
in thread Counting the number of items returned by split without using a named array

No, no, no, that would modify the original string in a most probably unwanted way. And if you really wanted to do it, then probably it should have been \s+. But you do not want to do so: a match would be better suited.

  • Comment on Re^2: Counting the number of items returned by split without using a named array
  • Download Code

Replies are listed 'Best First'.
Re^3: Counting the number of items returned by split without using a named array
by lima1 (Curate) on May 03, 2006 at 14:37 UTC
    I know that of course. It is just one quick n dirty way to count blanks (therefore the "e.g." ). but the goatse thing is nicer, i must admit