#perl - Wed 28 Mar 2007 between 16:15 and 16:26



Ani-_I suppose I'm just too used to Perl :/
[delta]what is this 'cmp' thing? don't you just mean a == b
cfedde[delta]: perl cmp is a bit more fancy than ==
[delta]cfedde, how more fancy
simcop2387cmp tells you if its > < or ==
for strings!
<=> for numbers
Ani-_[delta]: 'Equality Operators' in perldoc perlop.
[delta]ah I see
Davemanspaceship! \o/
cfedde[delta]: what simcop2387 says. Makes writing ordering predicates for sort easy.
simcop2387very very easy
Ani-_That's why every language should have it. But unfortunally that's not the case :(
simcop2387Ani-_: javascript doesn't appear to have them, i agree though it should
actionCPAN upload: IO-Socket-SSL-1.04 by SULLR
CPANupload: IO-Socket-SSL-1.04 by SULLR
Ani-_Luckily I only need to sort on one field.
[delta]function cmp(a,b) { return a == b ? 0 : (a > b ? 1 : -1); } <-- should work... i'm testing now
updhi
Patterner[delta]: "JavaScript-C 1.6 pre-release 1 2006-04-04 (OSSP js 1.6.20070208)" likes it
updcan someone help me with this code http://paste.lisp.org/display/38863#1 i don't know what is wring :s
wrong*
Patterner$10 on the RE.
Randalpeople sure come up with weird pastebots
perlygatekeeperperlbot: what is unfair
perlbotI already have an entry for what
perlygatekeeperperlbot: unfair
perlbot"forced to exist in this world of doltish ignorant cretins and liars with selfish motives
Ani-_GumbyBRAIN: Randal
GumbyBRAINAnd randal o/ -- im not too hard.
cfedde/o\ # I'm not listening!
ailtonperlygatekeeper: ok cool, join(" ", $foo, $bar, $ack, ...); <-- but what's the new var name ? are $foo and $bar saved in $ack then?
Ani-_GumbyBRAIN: wizard
dazjorzmm
[delta]I finally found that HTML previewer on w3schools: http://www.w3schools.com/html/tryit.asp | my function is tested :D
buuAni-_: Um. No.
dazjorzoh
buuDamn you ani.
ailton: Not really, no.
actiondazjorz just realised that postfix doesn't take care of pop, just smtp
dazjorzjust realised that postfix doesn't take care of pop, just smtp
Ani-_DAMN YOU BUU!

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 116 123 

IrcArchive