in reply to main script invoked twice
My guess is that somewhere inside of Our::UI::CommandLine there is a fork call. For details, look at perldoc -f fork, but the basic idea is that your print statement just moves that text into a buffer, not directly into the file log file your redirecting from stdout... when that fork happens, the buffer is copied to the child process, and so later on both the parent of the fork and the child of the fork flush the buffer, and whatever was in the buffer at the time of fork gets flushed twice.
------------ :Wq Not an editor command: Wq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: main script invoked twice
by steves (Curate) on Mar 29, 2004 at 00:24 UTC | |
by sfink (Deacon) on Mar 29, 2004 at 02:16 UTC | |
by etcshadow (Priest) on Mar 29, 2004 at 03:15 UTC |