The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

OBTAINING AND INSTALLING THE TEMPLATE TOOLKIT

The Template Toolkit module bundle is available from CPAN as:

    /authors/id/ABW/Template-Toolkit-[% tt.version %].tar.gz

Unpack the archive to create an installation directory. Something like this:

    zcat Template-Toolkit-[% tt.version %].tar.gz | tar xvf -

'cd' into that directory, make, test and install the modules:

    cd Template-Toolkit-[% tt.version %]
    perl Makefile.PL
    make
    make test
    make install

NOTE: on Win32 systems, Microsoft's 'nmake' appears to be a suitable replacement for 'make'.

The 'make install' will install the module on your system. You may need administrator privileges to perform this task. If you install the module in a local directory (for example, by executing "perl Makefile.PL LIB=~/lib" in the above - see perldoc MakeMaker for full details), you will need to ensure that the PERL5LIB environment variable is set to include the location, or add a line to your scripts explicitly naming the library location:

    use lib '/local/path/to/lib';