length() evaluates its argument in scalar context and an array in scalar context returns the number of elements in the array so you are getting the length of the number of elements.
John
I love you mannnn :) (With apologises to Animal House.)
@array = 1 .. 99;
do { print scalar @array, " bottles of beer in the fridge\n", scalar @array, " bottles of beer; take one down\n -". "pass it around ... \n\n"; } while (--$#array);
__END__
(Sorry John, I kept the last beer for next time :)
-Bill- __Sx__________________________________________ http://youve-reached-the.endoftheinternet.org/
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>