| buubot | Woosta: Error: Error: SyntaxError: int is a reserved identifier at line 0: int( (19+0.5) / 2 ) % 2 |
| sili | ekkeek |
| Woosta | oops :-D eval: int( (19+0.5) / 2 ) % 2 |
| buubot | Woosta: 1 |
| sili | SAY HELLO TO MY ROUNDING ERROR |
| Woosta | Mmm .. math bad But I wouldn't envoke perl for it |
| RyanW | legends, perl -e "print int( (19+0.5) / 2 ) % 2" |
| Woosta | erm .. |
| RyanW | perl -e "print int( (`date +%W`+0.5) / 2 ) % 2" returns 1 or 0 in a 2 week rotation. |
| Woosta | lol |
| Hammit | eval: print int( (`date +%W`+0.5) / 2 ) % 2 |
| buubot | Hammit: 0 1 |
| RyanW | thanks guys, i wasn't aware the maths symbol for mod was % so i was able to take your formula and plug it straight into asterisk where i need to use it anyway. |
| Hammit | eval: `date +%W` |
| buubot | Hammit: |
| Hammit | GumbyBRAIN: that didn't do what i expected it too |
| GumbyBRAIN | I take it too. |
| Hammit | hahaha GumbyBRAIN: i think you misunderstand...i definitely don't take it |
| gza | hi |
| Hammit | lo |
| action | CPAN upload: POE-Component-Server-SimpleContent-1.07 by BINGOS |
| CPAN | upload: POE-Component-Server-SimpleContent-1.07 by BINGOS |
| action | CPAN upload: KinoSearch-0.20_03 by CREAMYG |
| CPAN | upload: KinoSearch-0.20_03 by CREAMYG |
| gza | I've been using pp to make windows .exe out of perl scripts will pp work on osx too? The .exe need to work on windows. pp = Perl Packager |
| simcop2387-vnc | i've never gotten pp to work very well before, and AFAIK it'll only make windows programs |
| Hammit | http://faq.perl.org/perlfaq3.html#How_can_I_compile_my |
| davidfetter | hello |
| gza | simcop2387-vnc: actually pp has worked great for me but I recently switched to OSX....but still need to make these perl scripts into .exe for users on Windows |
| davidfetter | has anybody seen a CPAN module for checking whether an address is valid according to rfc 2822? i see one for rfc 822 on there, but i'm missing 2822 |
| f3ew | No significant differenced s/d$/s/ |
| buu | davidfetter: Does it really matter? |
| davidfetter | buu, i'm trying to use the latest & greatest for a pg domain :) thanks, f3ew :) |
| buu | davidfetter: Er, what? |
| davidfetter | buu, postgresql lets you create functions that run inside the db using external languages like perl |