### LIGHTS ON/OFF CODE### sub leftefzeroone { $button53->configure(-text => 'F0 - Left Lights On'); $button53->bind('', \&leftefzerotwo); my $tlightson = ""; $port->write($tlightson); $port->lookclear(); } sub leftefzerotwo { $button53->configure(-text => 'F0 - Left Lights Off'); $button53->bind('', \&leftefzeroone); my $tlightsoff = ""; $port->write($tlightsoff); $port->lookclear(); } ### BELL ON/OFF CODE### sub leftefoneone { $button54->configure(-text => 'F1 - Left Bell On'); $button54->bind('', \&leftefonetwo); my $tbellon = ""; $port->write($tbellon); $port->lookclear(); } sub leftefonetwo { $button54->configure(-text => 'F0 - Left Bell Off'); $button54->bind('', \&leftefoneone); my $tbelloff = ""; $port->write($tbelloff); $port->lookclear(); }