#perl - Thu 1 Mar 2007 between 21:26 and 21:34



spyro_boyspyroboy@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_bidonspyro_boy: I was looking at the Admins: : 0
spyro_boyyeah
ion_bidonspyro_boy: ok; so inside it has something and prints the value
when in the Login
spyro_boyyeah
merlynI live *near* WA state
LiquidAngle - why?
spyro_boyion_bidon, what're you thinking?
I just don't get why it goes empty.
It should be modifying the global @adminhosts.
ion_bidonspyro_boy: strange
spyro_boyI think so :/
ion_bidon, could it be that threads don't carry global variables?
or something like that.
ion_bidonspyro_boy: I don't know; you can check if the thread ever finishes
spyro_boyI'll go quickly test it
ion_bidonprint something after "threads->new(\&Login, @cmdinfo);"
oh no
wait, you cannot test like this
revdiabloYou're changing the variable from a separate thread? Is it shared?
spyro_boyrevdiablo, no idea.
merlynreason 47 why threads are evil. :)
ion_bidonmy $a : shared
spyro_boyOh.
revdiablospyro_boy: You should have an idea, if you are using threads
spyro_boythat's how I do it?
ion_bidonspyro_boy: my @adminhosts : shared;
revdiablospyro_boy: They're not shared by default
spyro_boyoh dang.
is there a way to make it shared by default?
revdiablospyro_boy: One of the reasons people advise against perl threads
ion_bidonright
merlynif you had used Bot::BasicBot, you'd be done by now
spyro_boymerlyn, meh. I like this structure of IRC bot.

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 

IrcArchive