O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The package Command

The package command has several operations that are used primarily by the pkg_mkIndex procedure and the automatic loading facility. These operations are summarized in Table 12-2.

Table 12-2. The package command.
package forget packageDeletes registration information for package.
package ifneeded package ?command?Queries or sets the command used to set up automatic loading of a package.
package namesReturns the set of registered packages.
package provide package versionDeclares that a script file defines commands for package with the given version.
package require package ?version? ?-exact?Declares that a script uses package. The -exact flag specifies that the exact version must be loaded. Otherwise, the highest matching version ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required