use strict; use warnings; #use Device::SerialPort; open L, ">>logfile" or die "cant log"; print L "\nstarting up.\n====\n\n";