http://www.perlmonks.org?node_id=547098

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

I'm getting the warning Use of implicit split to @_ is deprecated on this line:

$entries=split(/\s+/);

I really just want to count the elements there, I'm not interested in the resulting array. So what's the most elegant way to get the number of entries and throw away the resulting array (and remove the warning)?


Thx
I.

2006-05-04 Retitled by Arunbear, as per consideration
Original title: 'strip into @_ deprecated'