in reply to Error meaning

It means that either $dna has no value assigned to it, that you've assigned undef to $dna at some point or problems with scope. This is a common warning. If you actually want someone to tell you what exactly is wrong you're going to have to show us the code you are running, but you know that already.