in reply to Tie::File is driving me crazy

#use warnings;
Additionally, don't hide potentially useful debugging information: use strict and warnings.

Use print and Data::Dumper liberally (Basic debugging checklist)

If your problems persist, post a small sample of your input file.