#perl - Tue 6 Mar 2007 between 01:54 and 08:18



crungebut normally you don't want to just exit when an alarm goes off, you want to react...
patternyeah, i'd like it to close one open file handle... that's about it.... but perl should do that anyway on exit, right?
crungeeval, when called on a block, traps exceptions that would otherwise terminate your program
CaT[tm]I don't get it. Data::Dumper says the hash key and value are in the hash but if I try referencing it perl says it's undefined.
patternok... so if i just call alarm in my program and do nothing else, then my program will exit at the designated time?
CaT[tm]wtf is that so?
crungepattern: I believe so
patternok... let me try it
thanks, crunge
crungepattern: sure
simcop2387-tvGumbyBRAIN, where's merlyn
GumbyBRAINMerlyn should just register itself in.
buuboteMish: a=a; b=b 1
LeoNerdProf_Vince: Could you make a suggestion then...? Is it the use of the SvPV_nolen() before I've initialised it?
actionCPAN upload: Thread-Pool-Simple-0.02 by JWU
CPANupload: Thread-Pool-Simple-0.02 by JWU
LeoNerdOoh :) It works
Prof_Vince: newSVpvn("", ret-1); fixed it
OK... Next task is to work out how to get all the constants in <sys/systeminfo.h> exported
Ani-_LeoNerd: what happens if you call sysinfo("abc"); ?
actionLeoNerd tries
LeoNerdtries
Argument "Hello" isn't numeric in subroutine entry at t/02sysinfo.t line 18.
sysinfo() - Invalid argument at t/02sysinfo.t line 19.
(that was a return undef with $!)
Is that polite do you suppose, or should I take an SV* and test if SvIOK() ?
Ani-_It's polite (IMHO). (And thanks for trying)
actionLeoNerd tries valid numbers that solaris won't like
LeoNerdtries valid numbers that solaris won't like
Ani-_And note that SvIOK() is not nessesarily what you want.
LeoNerdOh..? Not that I'll do it this time, but what would you recommend?
actionavar pokes LeoNerd
avarpokes LeoNerd
actionsomian summons Ani DiFranco for kicks
somiansummons Ani DiFranco for kicks
dazjorzHm
avarI32
SI_PLATFORM(...)
dazjorzhm...system() outputs to STDOUT
avarPROTOTYPE:
dazjorzbut `` doesn't allow me to give an @array of arguments
Teratogencould output to STDERR too
Ani-_LeoNerd: IIRC: $x="123"; will results in an SV with SvIOK() false and SvPOK() true. (and note that there is also an SvNOK()). Use Devel::Peek if you want to be sure (can't test myself right now)
avarLeoNerd: you can also use ExtUtils::Constant
LeoNerdt/02sysinfo....ok 1/0Argument "Hello" isn't numeric in subroutine entry at t/02sysinfo.t line 26.

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 

IrcArchive