| spyro_boy | spyroboy@192.168.2.1 right there it's not on a newline so you missed it &SendChat($chan,"Login successful under hostname of $host!",$nick); print @adminhosts; |
| ion_bidon | spyro_boy: I was looking at the Admins: : 0 |
| spyro_boy | yeah |
| ion_bidon | spyro_boy: ok; so inside it has something and prints the value when in the Login |
| spyro_boy | yeah |
| merlyn | I live *near* WA state LiquidAngle - why? |
| spyro_boy | ion_bidon, what're you thinking? I just don't get why it goes empty. It should be modifying the global @adminhosts. |
| ion_bidon | spyro_boy: strange |
| spyro_boy | I think so :/ ion_bidon, could it be that threads don't carry global variables? or something like that. |
| ion_bidon | spyro_boy: I don't know; you can check if the thread ever finishes |
| spyro_boy | I'll go quickly test it |
| ion_bidon | print something after "threads->new(\&Login, @cmdinfo);" oh no wait, you cannot test like this |
| revdiablo | You're changing the variable from a separate thread? Is it shared? |
| spyro_boy | revdiablo, no idea. |
| merlyn | reason 47 why threads are evil. :) |
| ion_bidon | my $a : shared |
| spyro_boy | Oh. |
| revdiablo | spyro_boy: You should have an idea, if you are using threads |
| spyro_boy | that's how I do it? |
| ion_bidon | spyro_boy: my @adminhosts : shared; |
| revdiablo | spyro_boy: They're not shared by default |
| spyro_boy | oh dang. is there a way to make it shared by default? |
| revdiablo | spyro_boy: One of the reasons people advise against perl threads |
| ion_bidon | right |
| merlyn | if you had used Bot::BasicBot, you'd be done by now |
| spyro_boy | merlyn, meh. I like this structure of IRC bot. |