Once upon a time $#array + 1 was the size of the array; obviously (scalar @array) now has the right size.
$#array + 1 still is the size of the array and it won't modify the array. That's not what we were talking about. We were talking about ++$#array, which expands to $#array = $#array + 1. Note the equal sign there, because it's what modifies the array.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>