in reply to Re: split an array in two
in thread split an array in two

scalar(@_) is numbered from 1 to elements... and $#_ is numbered from 0 to limit.

What do you mean? when @x is empty scalar(@x) is 0 and $#x is -1.