in reply to Perl/Tk:swapping of frames without loosing the data

I doubt this part works:

if (!Exists($show_table_frame))

as the syntax is exists. You might want to use defined rather. Also, try not using our but rather define the variable outside the subroutine.

Finally, all this is overkill, where you can simply use the following:

if ($frame->ismapped) { $frame->packForget(); } else { $frame->pack(@{$frame->{PackInfo}}); }

Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.

Replies are listed 'Best First'.
Re^2: Perl/Tk:swapping of frames without loosing the data
by kapsule (Acolyte) on Aug 12, 2008 at 09:01 UTC
    Thanks a lot.. It started working.