JPaul has asked for the wisdom of the Perl Monks concerning the following question:
Inside Code is:unless(fork) { eval($code) || die("Doh - $@\n"); }
And inside CodeMod::MySub is a line or two that, very simply (for testing purposes) prints out the contents of $main::me. Only problem is - it doesn't.use strict; use vars qw($me); use CodeMod; $me = "Bob"; &CodeMod::MySub;
JP,
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Namespace after forking()+eval()ing providing unexpected results
by chipmunk (Parson) on Jan 23, 2002 at 10:13 UTC | |
by JPaul (Hermit) on Jan 23, 2002 at 20:32 UTC | |
|
Re: Namespace after forking()+eval()ing providing unexpected results
by perrin (Chancellor) on Jan 23, 2002 at 20:22 UTC |