in reply to Updating a TK window during a sub

Basically, if you have defined a counter or some other tracking variable, you can pass that variable into the processing subroutine (along with a reference to the main window) and change that reference as you go. To post the change to the GUI, issue the update command to the main window. ex $mw->update (assuming, $mw is the reference created by Mainwindow->new command).