> > What I'd like to happen is when "run.pl" ends or is CTRL-C'd I'd like > the $tws->disconnect to be called so that things get wrapped up > correctly. > > Thanks > Jay > Catch $SIG{INT} interrupt for CTRL-C inorder to call your disconnect functions ?