Perl: How to run a process in background

To execute a process in background on every platform (including windows) the simplest method is to fork the current perl process
Below the code

	my $pid = fork();
	die if not defined $pid;
	if (not $pid) {
		`execute your process here`; #or exec()
Your script will fork, the main continue its execution and the child will execute the process and terminates when the process terminates too

- Homepage Copyright © 2017 Experimental Website