in reply to OO Perl & Tk - problem with callbacks.

Your problem is here: -listcmd      => $self->LoadDS, What this does is assign the result of calling $self->LoadDS() to the key -listcmd. To create a callback, you need to pass -listcmd a sub reference, something like: -listcmd => sub { $self->LoadDS }

Replies are listed 'Best First'.
Re^2: OO Perl & Tk - problem with callbacks.
by jdtoronto (Prior) on Sep 12, 2004 at 05:24 UTC
    BUU

    Thanks! It was so darned obvious wasn't it - staring me in the face all along.

    jdtoronto