This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
Getodacul
- Voice
- Posts: 20
- Joined: Thu Jun 07, 2007 2:32 pm
Post
by Getodacul »
How can i split a word in w o r d?
Example:
<Eddgrop> !s testing
<Eddgrop> t e s t i n g
I need only a ideea.
Thanks
-
tomekk
- Master
- Posts: 255
- Joined: Fri Nov 28, 2008 11:35 am
- Location: Oswiecim / Poland
-
Contact:
Post
by tomekk »
Code: Select all
[tomekk@zonk]:/home# ./zonk.tcl
t e s t i n g { t e s t i n g }
try:
Code: Select all
set word "testing {testing}"
puts [join [split $word {}]]
-
Getodacul
- Voice
- Posts: 20
- Joined: Thu Jun 07, 2007 2:32 pm
Post
by Getodacul »
thanks, i get the ideea and it's working