"CPAN" = Comprehensive Perl Archive Network a worldwide collection of anonymous ftp sites for Perl et al (not to be confused with CTAN which is for TeX, nor CSPAN which rarely deals with computer software). The files of particular interest to a perl/Tk programmer would include:
* The latest Tk release should be in the modules/by-authors/Nick_Ing-Simmons/ directory at any CPAN ftp site (listed below). * The latest official Perl release should be in the src/ directory in a file called latest.tar.gz at any CPAN ftp site (listed below). * A recent binary distribution of perl Tk many other modules should bin in the modules/by-authors/Gurusamy_Sarathy/ at any CPAN ftp site (listed below). * If you need something older or newer than the "latest supported release" of Perl try the src/5.0/ directory at any CPAN ftp site (listed below).
There are a number of modules available for use with Tk. Among them:
* Alan Scheinine's SelFile.pm is in the modules/by-authors/Alan_Scheinine/ directory at any CPAN ftp site (listed below). * The widget collection Graham Barr originally wrote can be found with a CPAN search for "Tk-GBARR". * Guy Decoux's BLT_Table geometry manager is in the modules/by-authors/id/GUYDX/ directory at any CPAN ftp site (listed below). * Ilya Zakharevich's eText plug in replacement for the Text widget is in the modules/by-authors/id/ILYAZ/etext/ directory at any CPAN ftp site (listed below). * Brent B. Powers' Tk-FileDialog and Tk-WaitBox are available from the modules/by-authors/id/BPOWERS/ directory at any CPAN ftp site (listed below).
Some of the fancier perl/Tk scripts (news readers and web browsers e.g.) make use of other perl modules/module-bundles. Among those that you ought to consider installing are:
* To run the ptknews script you will need Mail/Internet.pm from the Mailtools module kit, available from the modules/by-authors/id/GBARR/ directory at any CPAN ftp/http site (listed below). While there pick up the latest libnet-* module bundle too. * The build of recent versions of perl/Tk requests that you have the URI::URL and HTML::Parse modules already installed. These modules are part of the libwww-perl-*.tar.gz kit, available from the modules/by-authors/id/GAAS/ at any CPAN ftp/http site (listed below).
Documentation is available from CPAN:
* Assorted documentation for perl is in the doc/ directory at any CPAN ftp site (listed below). * Fairly up-to-date versions of some Perl/Tk external documentation (such as this FAQ) is in the modules/by-authors/id/PVHP/ directory at any CPAN ftp/http site (listed below). (for Perl/Tk official documentation check the Tk/doc/*.htm files that are built with Nick's Tk kit on your computer.)
Bringing it all together one can look at:
* Most things perl/Tk (with certain exceptions) are also linked to a modules/by-module/Tk/ directory at any CPAN ftp/http site (listed below). * The long version of Tim Bunce and Andreas Koenig's module list helps you sort out things like "which kit is HTML::Parse a part of?". It is in modules/00modlist.long.html and is also posted periodically to newsgroups.
Here are the 52 CPAN sites/directories (with dotted quads [IP numbers] given on the right for those without name-servers):
According to Stephen P. Potter some of the CPAN sites have decompression on the fly for people who do not have programs like gunzip. For example, at the ufl site (Florida USA) type this into your ftp session to download a gunzipped version of Tk: ftp> get Tk400.202.tar
If you have the appropriate CPAN and FTP modules (yes there is a CPAN module for retreiving CPAN modules and its name is CPAN oddly enough) already installed you can retrieve a module from CPAN and carry out a complete installation with a perl one-liner like this: perl -MCPAN -e 'install "Tk"'
For more information on the CPAN you can send e-mail to the CPAN administrators, mailto:cpan-adm@ftp.funet.fi. If you know of some Perl resources that seem not to be in the CPAN (you did check the contents listings in indices/, didn't you?) please tell the CPAN administrators. If you have some modules/scripts/documentation yourself that you would like to contribute to CPAN, please read the file authors/00upload.howto and let the CPAN administrators know about it.