Perhaps you could use some sort of RPC? Check out
Bundle::PlRPC.
I believe RPC::PlServer (in this distribution) is what
DBI::ProxyServer uses.
Or you could write your own client-server system using
sockets. Check out perlipc. You'll want sockets if you're
going to be running this on different machines.