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.
In reply to Re: test script for LWP::UA based code
by kyle
in thread test script for LWP::UA based code
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |