Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements

by Courage (Parson)
on Aug 20, 2003 at 05:10 UTC ( #285101=note: print w/ replies, xml ) Need Help??


in reply to Re: Tcl, Tcl::Tk now much better, but need documentation improvements
in thread Tcl, Tcl::Tk now much better, but need documentation improvements

As far as I know perl/Tk will be updated soon to support Unicode in perl-5.8.x

But this is entirely different approach.

Normally you do not need Tcl::Tk when you are satisfied with perlTk, but here are cases when I use it and advice it to use for others:

  1. sometimes Perl somes without perl/Tk (Linux, FreeBSD and probably other distribution do not have it unless you managed to build perlTk) and compiling perlTk is much more consuming task than Tcl::Tk, because usually Tcl/Tk already exist in system and Tcl::Tk as a glue is really lightweight
    Being lightweight, it is much easier to port it to another OS, and, as a bright example, currently Tcl::Tk is the only way to get GUI for perl-5.8.x on WinCE, yet the only way to get Unicode-aware GUI for perl-x.x.x on WinCE.
    (OT: FreeBSD has rather old Perl and rather new Tcl/Tk after installing of OS. Why?)
  2. You need some feature that exists in Tcl/Tk but not available in perlTk. Mostly these are Unicode and large set of widgets available in Tcl/Tk.
  3. Not only widgets, but some parts of ready-to-use Tcl/Tk code could be used from Perl, as long as perl has full access to all widgets created in Tcl/Tk.
    (I use this approach quite often)
  4. Elder perls could have Unicode-enabled GUI this way.
    (I'm still using perl-5.6.1 and really will migrate to perl-5.8.1 soon, but until that I have ability to create Unicode-aware GUI)
Also, Tcl/Tk is updated more frequently than perlTk do.

Courage, the Cowardly Dog


Comment on Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
Re: Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
by IlyaM (Parson) on Aug 24, 2003 at 05:52 UTC
    OT: FreeBSD has rather old Perl and rather new Tcl/Tk after installing of OS. Why?

    What do you mean? FreeBSD's core containts rather old Perl but you are welcome to install latest Perl from ports collection. On the other hand Tcl/Tk is available from ports collection only.

    --
    Ilya Martynov, ilya@iponweb.net
    CTO IPonWEB (UK) Ltd
    Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
    Personal website - http://martynov.org

      Indeed.
      And thanks for pointing this: I asked several times this question and got an answer now.

      I do not know much of FreeBSD, I just installed it to test a module, and after installation found rather old perl, and was surprised by this a bit.

      Now I see both 5.6.1 and 5.8.0 in /usr/ports/INDEX file

      However, am I right that after installation of newer perl from ports collection do not overwrite elder perl?

      S-pa-see-ba.
      Courage, the Cowardly Dog

        However, am I right that after installation of newer perl from ports collection do not overwrite elder perl?

        Core perl is installed in /usr (i.e. binary is /usr/bin/perl). By default all ports install themselves in /usr/local (i.e. binary file is /usr/local/bin/perl). After you install perl from ports it will optionally offer you to run a script which makes perl from port a default (it removes /usr/bin/perl, makes symlink from /usr/local/bin/perl to /usr/bin/perl and does some other things I forgot). So answer is yes, perl installation from ports will not interfere with perl installation from core unless you want it.

        P.S. This information is correct for FreeBSD 4.x only. In 5.x they have removed Perl from core and it is installable from ports only.

        --
        Ilya Martynov, ilya@iponweb.net
        CTO IPonWEB (UK) Ltd
        Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
        Personal website - http://martynov.org

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285101]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-29 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls