in reply to Perl/Tk window->protocol question

I think you may be looking for the square bracket form of callback
-command => sub { numpress( $i ) } # equals -command => [ \&numpress, $i ]
so try
$top->protocol( DELETE_WINDOW', [\&my_clean_up_routine, $top, $another_parameter] ); [download]

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

Replies are listed 'Best First'.
Re^2: Perl/Tk window->protocol question
by mnooning (Beadle) on Mar 17, 2006 at 19:33 UTC
    It worked. Outstanding!
    Thanks for the quick response, too.