split() in scalar context (update: void context is a special type of scalar context) assigns to @_. That's documented. Chances are you can use something other than split() if you just want a field-count.
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perlhacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
Comment on Re: Mistakenly Believing split is using @_