egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Split a word in w o r d

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Getodacul
Voice


Joined: 07 Jun 2007
Posts: 20

PostPosted: Fri Mar 13, 2009 7:46 am    Post subject: Split a word in w o r d Reply with quote

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
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Fri Mar 13, 2009 8:26 am    Post subject: Reply with quote

Code:
[tomekk@zonk]:/home# ./zonk.tcl
t e s t i n g   { t e s t i n g }


try:
Code:
set word "testing {testing}"
puts [join [split $word {}]]
Back to top
View user's profile Send private message Visit poster's website
Getodacul
Voice


Joined: 07 Jun 2007
Posts: 20

PostPosted: Fri Mar 13, 2009 9:17 am    Post subject: Reply with quote

thanks, i get the ideea and it's working
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber