I don't know if I understand right, but the code seems to me the thread is based on code that resides in the same file as caller AND this thread will execute subroutine "c" in module B?
threads->new(sub { "B::c", $dummy++ })->join;I really want to run a thread based on codes in different files other than the caller.
In reply to Re^2: "Attempt to free unreferenced scalar" and "Scalars leaked: 1" ?
by licht
in thread "Attempt to free unreferenced scalar" and "Scalars leaked: 1" ?
by licht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |