--- Jeff Pinyan <[EMAIL PROTECTED]> wrote:
> On May 31, Paul said:
>
> >Still, though, won't that return all the *strings* as elements,
> rather
> >than the individual characters? and wouldn't \S* solve that
> difference?
>
> We're only matching ONE character at a time:
>
> @all_chars = $str =~ /./sg;
> @all_ws = $str =~ /\s/g;
> @all_non_ws = $str =~ /\S/g;
>
> If we use split(), then we want to split on \s*:
>
> @all_non_ws = split /\s*/, $str;
Duh.
Match, not split.
Match, not split.
MATCH, Paulie, NOT split. =o)
lol....
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/