in reply to Re: perl tk how to clear contents of text widget
in thread perl tk how to clear contents of text widget

This still does not clear the text from the text widget.
  • Comment on Re^2: perl tk how to clear contents of text widget

Replies are listed 'Best First'.
Re^3: perl tk how to clear contents of text widget
by zentara (Cardinal) on Jun 30, 2014 at 09:27 UTC
    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
Re^3: perl tk how to clear contents of text widget
by Anonymous Monk on Jun 29, 2014 at 20:32 UTC
    Can you prove it? Can you copy/paste your new program?
      i have added the code as suggested. many thanks.