#perl - Wed 9 May 2007 between 04:28 and 04:46



buubotWoosta: Error: Error: SyntaxError: int is a reserved identifier at line 0: int( (19+0.5) / 2 ) % 2
siliekkeek
Woostaoops :-D
eval: int( (19+0.5) / 2 ) % 2
buubotWoosta: 1
siliSAY HELLO TO MY ROUNDING ERROR
WoostaMmm .. math bad
But I wouldn't envoke perl for it
RyanWlegends, perl -e "print int( (19+0.5) / 2 ) % 2"
Woostaerm ..
RyanWperl -e "print int( (`date +%W`+0.5) / 2 ) % 2" returns 1 or 0 in a 2 week rotation.
Woostalol
Hammiteval: print int( (`date +%W`+0.5) / 2 ) % 2
buubotHammit: 0 1
RyanWthanks 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.
Hammiteval: `date +%W`
buubotHammit:
HammitGumbyBRAIN: that didn't do what i expected it too
GumbyBRAINI take it too.
Hammithahaha
GumbyBRAIN: i think you misunderstand...i definitely don't take it
gzahi
Hammitlo
actionCPAN upload: POE-Component-Server-SimpleContent-1.07 by BINGOS
CPANupload: POE-Component-Server-SimpleContent-1.07 by BINGOS
actionCPAN upload: KinoSearch-0.20_03 by CREAMYG
CPANupload: KinoSearch-0.20_03 by CREAMYG
gzaI'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-vnci've never gotten pp to work very well before, and AFAIK it'll only make windows programs
Hammithttp://faq.perl.org/perlfaq3.html#How_can_I_compile_my
davidfetterhello
gzasimcop2387-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
davidfetterhas 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
f3ewNo significant differenced
s/d$/s/
buudavidfetter: Does it really matter?
davidfetterbuu, i'm trying to use the latest & greatest for a pg domain :)
thanks, f3ew :)
buudavidfetter: Er, what?
davidfetterbuu, postgresql lets you create functions that run inside the db using external languages like perl

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive