Read perldoc perlipc and perldoc perlvar harder.
perl -le 'print "parent pid $$"; if( my $p = fork ) {print "parent got + child $p"; exit; } else { print "child pid $$"; exit }'
In reply to Re: PID after fork && exit
by Fletch
in thread PID after fork && exit
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |