The way to call Perl from Tk is to trigger callbacks, like pressed buttons.
Tcl is used to create the Tk GUI and can also create triggers.
So there are ways, but this smells like a XY Problem
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: call a sub from Tcl code in Tcl::pTk
by LanX
in thread call a sub from Tcl code in Tcl::pTk
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |