|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Threads Calling Subroutine from different PM Fileby Anonymous Monk |
| on Nov 26, 2012 at 17:16 UTC ( #1005721=note: print w/ replies, xml ) | Need Help?? |
|
In addition to the previous answer, you can wrap it into an anonymous subroutine, like this:
(but do check that your code does not change the values of $arg1 and $arg2 after that. With proper scoping, that is not hard to do.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||