in reply to Re^2: Sorting and Arranging data from input file
in thread Sorting and Arranging data from input file

warnings would have pointed you to a bug in your code: you never assign a value to $form.

Other suggestions: