Any clues besides rewritting the whole array?
Thanks
JP
--
_____________________________________________________________________________
Jean Piche
Musique - UdM
pic...@ERE.Umontreal.ca
Use "unset" to delete an element, or any other variable.
% set a(1) one
one
% set a(2) two
two
% array names a
1 2
% unset a(2)
% array names a
1
%
John Ellson
AT&T Bell Labs
--
John....@att.com
try the unset command as in:
unset arrayname(elementname)
tcl takes care of the rest - simple, no?
Bill Semler
wse...@epix.net
unset works on array elements too. Just use 'unset ary(elem)'.
--
Jeffrey Hobbs Office: 503/346-3998
Univ of Oregon CIS GTF email: jho...@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~jhobbs/
You CAN unset variables, array variables, and individual array elements
using unset.
set A foo
set B(foo)
set B(bar)
set B(baz)
unset A
unset B(foo)
unset B
All three of these work.
______________________________________________________________________
Warning: Due to the second Law of thermodynamics, use of your mail reader
may lead to the eventual heat death of the universe.