in reply to test script for LWP::UA based code
Your "HTTP server in the background" (ephasis added) is actually running in a separate process with its own memory.
my $pid = MyServer->new(8000)->background();
Here you've gotten the process ID of that separate process when it's created. I'd guess there's a call to fork under there somewhere. Any info you want to share between processes will have to be done at arm's length with the usual IPC mechanisms.
|
|---|