Tip #3 from the Basic debugging checklist: chomp
In reply to Re^2: Why does every value of the array get replaced? by toolic in thread Why does every value of the array get replaced? by andybshaker