in reply to Multidimentioal array
Have you tried to add use strict; to your program? I believe it would point out the mistake you've made.