reg_capture3.pl fix by removing all references to $line