in reply to array of hashes use

Thanks everyone, I didnt understand where to declare the $record variable. Once I moved int inside the loop it works properly. Sal