Theinvoke method invokes the subroutine to which the -command option points. Once you use -command to assign the callback, whenever you need to perform that same task, you can use invoke:
$button->invoke( );
Copyright © 2002 O'Reilly & Associates. All rights reserved.