in reply to Perl Tcl::TK GUI questions

I just have to say that the OP code, as posted, is totally incomprehensible -- apart from being incomplete and badly formatted, there are so many syntax errors that I can't begin to guess what you could be trying to do.

As mentioned in the initial reply above, the next time you try to post code here, make it something that is relatively short, and focuses on a particular issue that you're having trouble with. And please copy/paste your code from some display window that doesn't arbitrarily garble various white-space characters (putting line-feeds where there should be spaces or vice-versa) - for example, use some "dumb terminal" app (ms-dos command window, linux xterm, macosx Terminal, etc.) to print out your script on the screen, and copy/paste from there into the PM node composition widget.