![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: Dynamic variables and lists
From: Donald Arseneau <asnd@triumf.ca>
Date: Wed Jun 29 2005 - 21:53:20 CEST
ssriperu1@yahoo.com writes:
> power
so you set the variable power to a list
> a b c d
and try to look up the second list item in the string "power".
> % set second [lindex eval ${$a} 1]
-- Donald Arseneau asnd@triumf.caReceived on Thu Sep 29 14:23:51 2005 |