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.)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"