in reply to Menu Items & Modules...

Change event_function(\$frame) into event_function($frame) and avoid using $$top, since $top is already a reference.

You should also Use strict warnings and diagnostics or die, and you should post a complete code snippet which demonstrates your problem (How (Not) To Ask A Question), as describing what happens with a mysterious module (Tk) is not nearly as useful as demonstrating what happens.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Menu Items & Modules...
by TonyDonker (Novice) on Feb 21, 2005 at 13:44 UTC
    OK I did: but how can I avoid that when clicking on the menu item the frame is constantly being printed out?