Tk (not Tkx) on ActivePerl?

IronWing

No Lifer
Jul 20, 2001
72,867
33,934
136
I have some older scripts I use quite a bit that were written for Perl Tk. I hadn't upgraded my copy of ActivePerl for awhile. Now I found that the latest version dumped the Tk library in favor of Tkx. All the function calls are different rendering my old script useless. I'd rather not have to recode the script (260 lines in the part that uses Tk) so I'm wondering if I can just load the Tk module from the old version of ActivePerl into the lib directory for the new version and run the script. Anyone know if this might work? The new version is on a company machine that is locked down so I have to have the remote admin load the files so I can't simply test it out and see.
 

Pakman117

Senior member
Jan 20, 2001
303
2
81
Have you tried the TK CPAN module?

At least a couple users on this forum reported having TK 804.027 working with ActiveState Perl 5.10. I assume 804.028 wouldn't be a problem either. By the way, PPM, which is probably already installed on your system, makes installing CPAN modules a lot easier than building them yourself.
 
Last edited:

IronWing

No Lifer
Jul 20, 2001
72,867
33,934
136
Thanks for the info. I haven't had a chance to try it out yet as my admin has been gone a lot.