Can you give a small example of what the code looks like. You just need to setup a hash properly, to avoid the errors. You don't want to have "variable scalar variables". For instance, see
bad variable naming. The exact same functionality can be achieved without warnings by putting things in a hash, but we need to see some of your troublesome code.