| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Comments:
<0> yes <0> perldoc -f printf <1> The perldoc for printf - is at http://perldoc.perl.org/functions/printf.html <2> Creepy! <2> I was just testing a many-forking bit of code, and when I eliminated the last bug and it worked flawlessly.. <2> "Radio Free Zerg" came up on the playlist. <3> :) <4> I think the really creepy thing is if anybody has any freaking idea what you're talking about. <2> Have you never played starcraft? :( <0> no <4> Nope, but I think that reinforces my point <4> =) <2> That just means you're totally out of the loop. <0> fruit loop <4> The creepy video game playing loop? <2> The "omg blizzard pwnz0rz j00 4ll!!!!1oneleven!!!teen" loop.
<5> I hate the idea of paying a subscription to play a game <2> Yeah, that's dumb. <5> it's like a *successful* DRM system! <6> hi <2> And linux geeks can't abide by DRM. <5> ih :xXx <6> is posible to recive a notification if a mail have been recived with Net::SMTP or other module? <3> integral: you want the vim window over there ----> <5> Net::SMTP is for transmitting email between servers, or, unfortunately, for injecting mail from MUAs, not for checking mail. <5> I think you want a IMAP module for _that_ <2> That's the mozilla window. Vim is ---^ <2> I'm still waiting for Duke Nukem 3d. <5> *sigh* this paper uses Pi for product types, and then Sigma for the other product types (ie tuples) <5> hmm, I'm certain it didn't actually mention -> as sugar for Pi though <7> how do I determine if one string is contained in another? <8> uh, I have a bit of a problem: I'm trying to find a string in a html page I parsed but I can't seem to get it right ... =/ <8> if("\s.*"+@sign[$i]+".*\s",lc($buf)) <8> that's what I do <8> (@sign has the words i'm trying to match and this if statement is in a for loop) <3> N-0-X: what language is that again? <3> gizban: index? <8> uh ... it's supposed to be perl <8> lol <2> Botje: cat-on-keyboard. <3> ew73: very popular language nowadays <0> N-0-X: + is not the concat operator, and @foo[..] is an array slice, not an array element <7> Botje: no, I need a regular expression, but all the tutorials I've read don't explain how to put a string variable in a regular expression <2> Botje: Surprising, considering I've never seen it do anything right the first time. <0> gizban: /$foo/ <9> N-0-X: That ain't perl buddy <3> N-0-X: you probably want $buf =~ /\Q$sign[$i]/i <7> $s1 =~ /$s2/ ? <8> ohhh! ok <0> or perhaps better with quotemeta ^ <3> ew73: ah, but you need the correct version of the interpreter <8> b0at, no "^" needed <0> Huh? <0> How else am I going to point at what Botje typed? <8> (does that even have any sence ... lol) <0> My other appendages are busy. <3> N-0-X: nahh, learn as much languages as you can! <9> Then learn many languages. <9> Like english. <0> heh <3> ENGLISH IS NOT A LANGUAGE <9> what is it? <0> "It's not code unless it compiles !!!|" <8> :| <10> by that logic perls not a language <3> let larry be a perl compiler : ... <3> :) <11> sure perl compiles <12> how do I match any string of digits that doesn't end in a 2? <11> bytecode is compiled too! <11> dont be an antivirtualist <7> if(true==false) {print 'wtf?';} why does this print? <0> facefaceface: (\d*[^2]) <0> or something
<12> b0at, ty <11> because true and false are both numericaly zero <11> use eq <0> Actually, [0,1,3-9] if you don't want non-digits <13> eval: if (true==false) { print 'hei';} <14> iank: heiReturn: 1 <13> eval: if (true eq false) { print 'hei';} <14> iank: Return: <0> eval: true <14> b0at: Return: true <0> wt... <12> b0at, ok I see <0> gizban: There is no such thing as true. <0> Also, false is a lie. <7> I want a function that return true or false, what should I be returning instead? <0> perldoc false <11> you killed the bot! <0> perldoc false values <0> bah <0> perlbot false <15> false things: @array/%hash if they have no elements, (), "", "0", 0, undef <12> eval : "11" =~ /(\d*[0,1,3-9])/ <12> come on you silly bot! <16> Heh.. I find it interesting that truth in perl is only really defined by what isn't false. <13> eval: FIVEK <14> iank: Return: FIVEK <13> ! <16> We have a list of things that are false. Anything that isn't false, is true <3> LeoNerd: the list of things that is false is finite. the list of things that is true is infinite. <0> Because there are more states of things existing than not existing. <17> LeoNerd: so false will evaluate to true. <13> LeoNerd: well.. in other languages, it's basically the same. <13> LeoNerd: 0 is false, nonzero is true <13> (In other words, anything but the thing we just defined as false is true) <13> s/other languages/*some* other languages/ <12> me go now <11> LeoNerd: just remeber 0E0 isnt false <16> 0 but true; :) <17> StoneToad: why is that not false again? <11> yea, dbi uses 0E0 since it prints better <11> your query returned 0 but true rows doesnt look so hot <17> StoneToad: true that. <16> Oh, I was thinking more of perl6's "but" operator <11> f00li5h: it's a string in scientific notation, so it's parsed as zero when it's used numericaly <11> but only the string "0" is false <17> StoneToad: i see, when you check if "0e0" is true, it is, but "0e0"+1 ==1 . <13> eval: 0e0+1 <14> iank: Return: 1 <0> f00li5h: Because taken as a string, it is not the same as 0. <13> eval: 0e0+1-1 <14> iank: Return: 0 <17> fantastic. <13> eval: 3e0 <14> iank: Return: 3 <13> eval: "3e0" <14> iank: Return: 3e0 <13> Yay strings. <13> eval: 3e0+1-1 <14> iank: Return: 3 <13> eval: "3e0"+1-1 <14> iank: Return: 3 <13> Yay strings again <13> Consistancy is for losers, it seems =) <11> eval: print "true" if ("0e0") <14> StoneToad: trueReturn: 1 <0> eval: "3e0"+0 <14> b0at: Return: 3 <11> eval: print "true" if ("0e0" + 0) <14> StoneToad: Return: 0 <11> eval: print "true" if (+"0e0") <14> StoneToad: trueReturn: 1 <13> WE LOVE PERL! WE LOVE PERL! <13> (Chant with me, folks!) <13> WE LOVE PERL! WE LOVE PERL!
Return to
#perl or Go to some related
logs:
#linux php TLS negotiation failure qosmio conexant 5b7a linux #css #python phtread tutorial
#centos #xorg #fedora gaim 1.5.0 autoprofile plugin
|
|