ajeet@perl has asked for the wisdom of the Perl Monks concerning the following question:
Again here to seek solution from you...
This time i am facing a problem with return type of threads->create().
Situation is smoething like this....Suppose I have two functions "A" and "B". Now function "A" calls function "B", Now the function "B" is written to create threads, for ex. my $returnVal=threads->create(&threadFunc). Now I am returning $returnVal from function "B" to "A". Function "A" is storing this return value in variable $thrdObj. Now when I call $thrObj->tid(), it throws an error like Thread 1 terminated abnormally: Can't call method "tid" without a package or object reference .
I just want to call tid() function of threads in function "A".
Please Help me out...
Thanks in Advance...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Return Type of threads->create
by Corion (Patriarch) on Apr 19, 2010 at 09:02 UTC | |
|
Re: Return Type of threads->create
by cdarke (Prior) on Apr 19, 2010 at 10:56 UTC | |
by ajeet@perl (Acolyte) on Apr 20, 2010 at 07:22 UTC |