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'
In reply to Counting the number of items returned by split without using a named array by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |