Edit2, wooohah! iet ies alive! now if only i can find a way to make it stop dying because the main script ends i'm all the way there :/
Edit, problem solved by using threads->create(\&_run); instead
well, i went for your suggestion concerning threads, and all seems to be fine, except for one thing, the thread doesn't return control to the calling subroutine :(
I've spent quite a bit of time reading tutorials and the like, and they all tell me that when using the threads module the calling script should continue normally after spawning off a thread...here's the bit of code that i use:
sub run
{
my $self = shift;
$self->{thread} = threads->create($self->_run);
print "does this ever show up?\n";
}
The print statement never gets executed, as the thread takes control of the entire script. Any ideas?