| 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 |
| simcop2387 | cmp tells you if its > < or == for strings! <=> for numbers |
| Ani-_ | [delta]: 'Equality Operators' in perldoc perlop. |
| [delta] | ah I see |
| Daveman | spaceship! \o/ |
| cfedde | [delta]: what simcop2387 says. Makes writing ordering predicates for sort easy. |
| simcop2387 | very very easy |
| Ani-_ | That's why every language should have it. But unfortunally that's not the case :( |
| simcop2387 | Ani-_: javascript doesn't appear to have them, i agree though it should |
| action | CPAN upload: IO-Socket-SSL-1.04 by SULLR |
| CPAN | upload: 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 |
| upd | hi |
| Patterner | [delta]: "JavaScript-C 1.6 pre-release 1 2006-04-04 (OSSP js 1.6.20070208)" likes it |
| upd | can 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. |
| Randal | people sure come up with weird pastebots |
| perlygatekeeper | perlbot: what is unfair |
| perlbot | I already have an entry for what |
| perlygatekeeper | perlbot: unfair |
| perlbot | "forced to exist in this world of doltish ignorant cretins and liars with selfish motives |
| Ani-_ | GumbyBRAIN: Randal |
| GumbyBRAIN | And randal o/ -- im not too hard. |
| cfedde | /o\ # I'm not listening! |
| ailton | perlygatekeeper: ok cool, join(" ", $foo, $bar, $ack, ...); <-- but what's the new var name ? are $foo and $bar saved in $ack then? |
| Ani-_ | GumbyBRAIN: wizard |
| dazjorz | mm |
| [delta] | I finally found that HTML previewer on w3schools: http://www.w3schools.com/html/tryit.asp | my function is tested :D |
| buu | Ani-_: Um. No. |
| dazjorz | oh |
| buu | Damn you ani. ailton: Not really, no. |
| action | dazjorz just realised that postfix doesn't take care of pop, just smtp |
| dazjorz | just realised that postfix doesn't take care of pop, just smtp |
| Ani-_ | DAMN YOU BUU! |