I don't have a problem with the implicit split to @_, when called in a void context. It wouldn't do anything useful at all otherwise.
And the number of items produced is then readily availble as scalar @_:
while(<>) { split; warn "processing " . @_ . " tokens\n"; &process; # implicitly takes @_ }
Having split in a scalar context just return the count also makes sense. (To me at least.)
In reply to Re^4: More intelligent warning?
by BrowserUk
in thread More intelligent warning?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |