I have about 4 different versions of tcl/tk on various
computers and keeping track of what is available is
getting sticky :)
Thanks
Jerry
Have you tried...
package names
Jeff
However after I did a "package require <anypackage>"
all (I hope) package names showed when I did a
"package names"
I guess it needed a kick start to build the data structures
Thanks,
Jerry
Thank you "lspackages" does the job quite nicely.
Jerry
Kind of a "kick start." The [package names] command will return a list of
package names that Tcl knows about. At startup, the interpreter only knows
about the Tcl package. If you try to require a package that Tcl doesn't
know about, then it runs all the pkgIndex.tcl files that it finds in the
auto_path. THEN Tcl knows about lots of packages. So you could use [catch
{package require BOGUS-PKG-NAME}] to get the same effect, without actually
loading a package.
--
Bob Techentin techenti...@NOSPAMmayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/