nnvgps has asked for the wisdom of the Perl Monks concerning the following question:
I am trying for thread programming perl in a following way: Description: The current perl script needs to call another subroutine exists in the another perl module(.pm file) using thread method. Case1: general way of callign subroutine using threads is like
my $t= Thread->new(\&process, @args);
where process is the subroutine exists in the same perl file. Case2: calling the subroutine which exists in a different perl module
my $t= Thread->new(\&$anotherfile->another_process, @args);
where another_process exists in the different perl module and not in the same perl file. Question is that Case2 is not working for me. I am not able pass any arguments to this thread. Can any one helpme to solve this issue? Regards Suresh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to call the subroutine from another perl module using threads
by Eily (Monsignor) on Jun 26, 2013 at 12:36 UTC | |
|
Re: How to call the subroutine from another perl module using threads
by Anonymous Monk on Jun 26, 2013 at 23:58 UTC |