On Tue, 12 Feb 2002, Pankaj Warade wrote:
> This is work
>
> my @array = ( 1, 2, 3, 4 );
>
> print $#array; ---> size of array.
No, $#array is the index of the last element of the array. To get the
size of an array, just put the array into a scalar context:
my $size = @array;
print scalar(@array);
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Technology is dominated by those who manage what they do not understand.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]