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.

Split a word in w o r d

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Getodacul
Voice
Posts: 20
Joined: Thu Jun 07, 2007 2:32 pm

Split a word in w o r d

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
User avatar
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 {}]]
User avatar
Getodacul
Voice
Posts: 20
Joined: Thu Jun 07, 2007 2:32 pm

Post by Getodacul »

thanks, i get the ideea and it's working
Post Reply