in reply to Re^2: How do I used a threaded subroutine inside a perl object
in thread How do I used a threaded subroutine inside a perl object
You could try it this way:
$thread = threads->create( \&_openFDCObject, $self, $swObject, $switch + );
Which should work in as much as the thread should start and run the method, but after that I suspect things will not the way you are expecting them to.
But frankly, it would be too hard to explain why to you, you'll need to learn by your mistakes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I used a threaded subroutine inside a perl object
by adamcpfeiffer (Novice) on Jul 03, 2013 at 16:37 UTC | |
by BrowserUk (Patriarch) on Jul 03, 2013 at 18:00 UTC |