in reply to Re^4: Perl TK
in thread Perl TK
Why do you have exit(0) in the forked code? My guess is that exit is closing the script. Maybe it has something to do with fork being emulated by threads on MSWindows? See How does system(1,"foo") work on Windows?. Maybe all you need is "system(1, start $url)"
if ($pid == 0) { execute(system "start http://www.yahoo.com"); exit(0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl TK
by randor (Novice) on Sep 25, 2012 at 12:39 UTC |