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

It still dosn't clear

You seem to like to use the array form for the -command. The code I showed you does NOT have the brackets.

-command => [$right_frame => \&clear_file]) #notice the difference -command => \&clear_file )
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.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh