14.5. Bailing Out of a Callback Created with bind

To stop the processing within your callback, you can use a return statement to return control. This will not stop any further bound callbacks from being processed. To halt the processing of any and all callbacks bound to a widget/event combination, you can use Tk::break instead of the milder return.

Get Learning Perl/Tk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.