in reply to Re^2: perl tk how to clear contents of text widget
in thread perl tk how to clear contents of text widget
You seem to like to use the array form for the -command. The code I showed you does NOT have the brackets.
Don't use the bracketed command form unless you know what you are doing with it. It is used if you want to pass arguments to a subroutine, which you don't need in this case.-command => [$right_frame => \&clear_file]) #notice the difference -command => \&clear_file )
|
|---|