When you read the documentation for HTML::Form, what type of data structure does the parse method return?
Is it an array, or is it a reference to an array, or is it some other data structure?
From the vague description of your problem, I suspect it returns a reference to an array. You can get more information by using: