Can't call method "getline" on an undefined value at DeviceTrimGen.pl line 7.