# Tcl perl module for Perl5 Interface to `Tcl` and `Tcl/Tk` # Description The Tcl extension provides a small but complete interface into `libtcl` and any other Tcl-based library. It lets you create Tcl interpreters as perl5 objects, execute Tcl code in those interpreters and so on. There is a `Tcl::Tk` extension (not to be confused with "native" perl5 Perl/Tk extension) distributed separately which provides complete interface to the whole of Tk via this Tcl extension, also providing full perl/Tk syntax. Another extension to note is `Tcl::pTk`, which does the same but claims to have full perl/Tk compatibility. Using "tcl stubs", module could be built even without tcl-dev package installed on system. Still, tcl (or tcl/tk) must be installed during module build. `--nousestubs` also supported. Tcl versions 9.0, 8.6, 8.4 are actively used and supported, 8.0 also worked well in the past. Unlike many modern CPAN distributions, the Tcl module intentionally adheres to a strict zero-dependency and minimal-footprint design: * No external CPAN dependencies: The module relies solely on the core Perl distribution (XSLoader/DynaLoader) and avoids heavy toolchain wrappers such as `Alien::*`. This keeps builds predictable, eliminates dependency bloat. * Perl 5.6.0+ compatibility and fast startup: Support for Perl 5.6.0 (the earliest release with native UTF-8 support) is preserved deliberately. The module avoids heavy runtime pragmas like warnings.pm in favor of lightweight checks, ensuring minimal memory overhead and near-instant cold startup times. # Install Build in the usual way for a perl extension: perl Makefile.PL make make test make install This will take reasonable defaults on your system and should be ok for most uses. In some rare cases you need to specify parameters to `Makefile.PL`, such as pointing non-standard locations of `tcl/tk`, etc. Use `--help` option to find out supported parameters to `Makefile.PL`: perl Makefile.PL --help # License See License, Authors sections in `Tcl.pm`, or with `perldoc Tcl` - once it is installed - to have acknowledged on this type of information.