Perl/Tk uses a hacked version of the Tk sources to implement the
Perl/Tk library. As such, it will not be able to use the AquaTk shared
libraries. For this to work somebody would have to update Perl/Tk to a
fairly recent version of the Tk source base, and do whatever hacks were
needed to the macosx part of the code. There have been on and off
rumblings about doing this, but as far as I know nobody has done it.
There has also been some work to make a replacement for Perl/Tk that
uses an embedded Tcl interpreter to talk to Tk (much like TkInter does
for Python). This has the advantage that it doesn't require a special
version of Tk & all the extensions. But I don't know whether it is in
any way source compatible with Perl/Tk.
Jeff would probably know more about this.
On the bright side, you can install the BI version of Tcl/Tk and it
won't conflict with your Perl/Tk at all...
On Nov 11, 2004, at 1:12 PM, David Cortesi wrote:
> Sorry for such basic questions but I can't find the answer in the
> tcl-mac faq which seems to be oriented to the developer.
> I spend many hours in a sophisticated app written in Perl/Tk (URL
> below). The developer maintains it well but tests only on Windows. His
> users, like me, have gotten it to work on Linux and on OS X (under
> X11) and he does his friendly best to respond to unique problems, but
> can't set up tests on other platforms.
> It would be neat to launch be able to run this app as Aqua-native, but
> can I?
> 1) If I download and install the Tk/Aqua distribution, will that
> overwrite in full or in part, the working Tk now found in
> /Library/Perl/5.8.1/darwin-thread-multi-2level/Tk ? In other words,
> could I fall back to X11 if the Aqua didn't work out?
> 2) Will an existing Perl app that works with Tk/X11, automagically
> start using Tk/Aqua? Or does the user (me) have to do something? Or,
> does the developer have to do something to the code to make it come up
> in Aqua?
> 3) If the developer has to do something to start up in Aqua, can it be
> done in such a way that the identical .pl source file will continue to
> work on Windows? Or would he have to fork a separate Aqua version of
> the code? (Which will never happen.)
> 4) In the FAQ there are indications that not everything works exactly
> the same. This is an app of 13,247 lines of Perl, a specialized text
> editor with features like tear-off menus and multiple windows. Is
> there any chance of it working without modification in Aqua?
> Thanks for any information,
> Dave Cortesi
> the app in question is at
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> Tcl-mac mailing list