(former, dead link: http://tcllib.sourceforge.net/doc/tie.html )
Array persistence. This package provides a framework for the creation of persistent Tcl array variables. It is also generic enough to allow the distribution of the contents of Tcl arrays over multiple threads and processes, i.e. communication. Persistence and communication are accomplished by tying a Tcl array variable to a data source. Examples of data sources are other Tcl arrays and files.
RLH 20050901 - When would this be included in tcllib? With the next 8.4 release?
AK This can go into the example area.
JGB: the problem with Tcl's implementation of Tie is that it doesn't let you have massive arrays like Perl does. With Perl's tie() the actual get/set calls in the array implementation are replaced with calls to a dbm-style-db, so that you can program with no regard for the memory use of the array. Array calls turn out to be a very handy way to work with dbm files. Of course, one can emulate this in Tcl by using Berkeley-DB's Tcl library and using it like an array.