Previous Next Invoking the Button 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( );