| crunge | but normally you don't want to just exit when an alarm goes off, you want to react... |
| pattern | yeah, i'd like it to close one open file handle... that's about it.... but perl should do that anyway on exit, right? |
| crunge | eval, 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. |
| pattern | ok... 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? |
| crunge | pattern: I believe so |
| pattern | ok... let me try it thanks, crunge |
| crunge | pattern: sure |
| simcop2387-tv | GumbyBRAIN, where's merlyn |
| GumbyBRAIN | Merlyn should just register itself in. |
| buubot | eMish: a=a; b=b 1 |
| LeoNerd | Prof_Vince: Could you make a suggestion then...? Is it the use of the SvPV_nolen() before I've initialised it? |
| action | CPAN upload: Thread-Pool-Simple-0.02 by JWU |
| CPAN | upload: Thread-Pool-Simple-0.02 by JWU |
| LeoNerd | Ooh :) 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"); ? |
| action | LeoNerd tries |
| LeoNerd | tries 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) |
| action | LeoNerd tries valid numbers that solaris won't like |
| LeoNerd | tries valid numbers that solaris won't like |
| Ani-_ | And note that SvIOK() is not nessesarily what you want. |
| LeoNerd | Oh..? Not that I'll do it this time, but what would you recommend? |
| action | avar pokes LeoNerd |
| avar | pokes LeoNerd |
| action | somian summons Ani DiFranco for kicks |
| somian | summons Ani DiFranco for kicks |
| dazjorz | Hm |
| avar | I32 SI_PLATFORM(...) |
| dazjorz | hm...system() outputs to STDOUT |
| avar | PROTOTYPE: |
| dazjorz | but `` doesn't allow me to give an @array of arguments |
| Teratogen | could 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) |
| avar | LeoNerd: you can also use ExtUtils::Constant |
| LeoNerd | t/02sysinfo....ok 1/0Argument "Hello" isn't numeric in subroutine entry at t/02sysinfo.t line 26. |