Version 6 of parray

Updated 2003-09-06 03:24:17

Documentation for parray and several related items should be found at http://purl.org/tcl/home/man/tcl8.4/TclCmd/library.htm

Summary:

parray arrayName

Print on standard output the names and values of all the elements in the array arrayName. ArrayName must be an array accessible to the caller of parray. It may be either local or global.

In fact, it's more like this:

parray arrayName ?pattern?

Print on standard output the names and values of all the elements in the array arrayName that match pattern. If pattern is not specified, then all of the elements of the array are included in the result. If pattern is specified, then only those elements whose names match pattern (using the matching rules of string match) are included. ArrayName must be an array accessible to the caller of parray. It may be either local or global.


parray prints an array's keys and values, in key alphabetic order and formatted to the longest key name, to stdout. RS


See also:


Tcl syntax help - Arts and Crafts of Tcl-Tk Programming - Category Command