in reply to Need to count the number of entries in a array
An array in scalar context returns the number of elements in the array.
my $suppliercount = @supplier; [download]