Perl: the Markov chain saw | |
PerlMonks |
Redefining function after forkby gri6507 (Deacon) |
on Jan 18, 2014 at 01:03 UTC ( [id://1071044]=perlquestion: print w/replies, xml ) | Need Help?? |
gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks, I have a need to fork() and then redefine a function within the child, but not the parent. Here's my code. This prints: modified foo(parent) modified foo(child) modified foo(the end) However, I was hoping that the redefinition of the foo() function would only affect the scope of the child process. In other words, I wanted to get Is something like this possible?
Back to
Seekers of Perl Wisdom
|
|