in reply to Re^3: More intelligent warning?
in thread More intelligent warning?
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.)
|
|---|