I know. My entire point was not to maintain a counter manually a' la
++$cnt while $str =~ /\s+/g;
Well done to point out about \S anyway, since one often forgets about \S, \D and \W.
In reply to Re^4: Counting the number of items returned by split without using a named array
by blazar
in thread Counting the number of items returned by split without using a named array
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |