Use COM, either by making it a "script component" or using ActiveState's server maker from their dev kit. Or, use a remote shell (unrelated to Perl). Or, have the script, already running, listen for a signal on a socket or named pipe and GO when the client tells it.