Hi all,

This is probably a fun trivial question: I'd like to count the number of words in a string. My command:
my $count = split(/\s+/,$line);

works. But Perl complains about:
Use of implicit split to @_ is deprecated

It works, but it's deprecated. I can assign split to an array, then do a scalar() on it. But this cannot be the best method (too much work!).

Your take guys?
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to