Vladimir D Belousov <mailto:[EMAIL PROTECTED]> wrote:

: I mean 'but why $myvar[$#mmyvar] is the last element of
: array', not 'first' in my letter.

: I thought that $#array is equal scalar(@array).

    $#array equals 1 less than scalar(@array). scalar(@array)
gives the number of elements in @array, while $#array gives
the index of the last element of @array.

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to