in reply to Log File

Perl is not doing that... I am guessing you are redirecting the output on error? Maybe try returning undef instead of $Retcode on error? How is this script being executed, manually?

Replies are listed 'Best First'.
Re^2: Log File
by tilda (Initiate) on Jan 04, 2012 at 23:14 UTC

    Another possibility is that the SCMTools::Util module is outputting to a log file when it encounters an error. Difficult to tell without see the code of that module.