# Binding two things to the same subroutine my $print_sub = sub {print "Button A event\n"}; $mw->bind( '', [ $print_sub ] ); $mw->bind( '', [ $print_sub ] );