I think the warning is still appropriate in your cases, because split modifies @_ in both cases, which I consider unfortunate :-):
>perl -le "$_='abc';@_=qw(1 2 3);$n=split//;print for @_" a b c
Maybe the warning should be split used in scalar context in your case, and remain as is for void context, or maybe split in non-list-context should be deprecated due to its side-effect.
In reply to Re: More intelligent warning?
by Corion
in thread More intelligent warning?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |