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...
In reply to Return Type of threads->create by ajeet@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |