in reply to Simple array question

Evaluating an array in scalar context will tell you how many elements the array contains. length is not the right tool for the job.

my @array = (["customer", "20528"], ["priority", "3"]); print scalar @array;

It's an easy (and common) mistake to make.


Dave