I need to capture the output from the Expect script so that it can be evaluated and this is why the backticks were used, but if the ouput from the Expect script ($swbt_dms) can be captured without the use of backticks this would be great. The arguement ($item) provided to the Expect script is either Datakit or IP info. So with all of this said, what would be the most appropriate method of capturing into a file (has to be into a file) the output from the Expect script so that it can be evaluated? Hay, thank you for taking time to help me with elevating my Perl knowledge.