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
In reply to Re: main script invoked twice
by etcshadow
in thread main script invoked twice
by steves
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |