Shortly:In if(exists($hash{"$_"})) you should write only {$_} I think.
I think s/[\r\n]+$//; would do a nice chomp. Yes, I found chomp strange...
Sorry for not to read the whole thread.
Ok, you can trick with variable names, but the namespace will be dusted, and you must take care the variable names.
When using the array(key1-key2) technique, it is not so efficient to search.
And listing all the key1-s? brrrr
Storing arrays in strings...
I'm writing a chat client... I don't think your program must do something to EVERY keystroke. But do an entry, and bind a proc to the ENTER key. Tcl/tk is event driven, so use events!
kgergely@turul.eet.bme.hu
My main problem with Tcl, that there is no complex data structures (hash of hash...) because there are no references. Everything is stored in strings, that's why everything is slow... :(
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.