| |
| |
| |
|
Comments:
<0> .set list "hi im bob high" <0> set list "hi im bob high" <1> Shortman: #1077 (306 clicks) Tcl: hi im bob high <0> return [lsearch -glob $list "hi*"] <1> Shortman: #1078 (403 clicks) Tcl: 0 <0> return [lsearch -glob -all $list "hi*"] <1> Shortman: #1079 (432 clicks) Tcl: 0 3 <0> return [lsearch -glob -all $list "*i*"]
<1> Shortman: #1080 (436 clicks) Tcl: 0 1 3 <0> foreach blah $list { if {[string match highly "*$blah"]} puts "$blah" } <0> foreach blah $list { if {[string match highly "*$blah"]} put "$blah" } <0> put test <0> puts test <1> Shortman: #1084 (stdout) test <0> foreach blah $list { if {[string match highly "*$blah*"]} put "$blah" } <0> foreach blah $list { if {[string match highly "*$blah*"]} puts "$blah" } <0> grrr <0> foreach blah $list { if {[string match "*$blah*" "highly"]} puts "$blah" } <0> foreach blah $list { if {[string match "highly" "*$blah*"]} puts "$blah" } <0> * shrug * <0> anyone know an efficent way of doing that? <0> given a list of *blah* type patterns, compare them to a string and return the matches <0> it seems like a foreach with a string match on each is a little bulky <2> im so bored <2> :/ <3> =) <2> i wrote a remote ftp file .sfv checker <2> a completly usesless thing <2> im so bored <2> :] <2> so what do we do? <4> th3dge: lighttpd is functional both with cgi.tcl and fcgi.tcl <5> the char ' in tcl what is that for? <5> if i use '$bla' its outputs '$bla'
<5> how to fix that <6> an apostrophe is an apostrophe <6> simple as that <5> hehe <6> if you're trying to quote a string, use " <5> so i can not use it if i want the var to be readed <5> ok <6> "var to be readed" ? <5> lol ok <6> I have no idea what that's supposed to mean <5> oh nothing <5> im just stupid <7> N86ers, variable interpolation doesn't work with single quotes <7> only with double quotes <5> hmm ok something wierd with mysqltcl =) <5> or i am wierd in my head today <8> ;tcl expr 364 x 3 <8> ;expr 364 x 3 <8> .tcl expr 364 * 3 <8> boo <8> :( <9> x ? <10> ;expr 364 * 3 <9> omg, wrote to the jabber ver of safetcl a few days ago, finally answered me <3> hehe <8> ;expr 364 * 3 <3> jabber.org ****s BTW.. It's so unstable.. best to use another jabber server. <8> die <9> im like using gtalk, so everything is logged in my end <10> .chanset #tcl +safetcl <3> =) <3> give it a few mins.. it always lags when it gets online.
Return to
#tcl or Go to some related
logs:
#politics #beginner #politics GL_T2F_N3F_V3F vista change system drive
give my dad a blowjob #red #red #mirc #worldcup
|
|