http://www.perlmonks.org?node_id=1032627


in reply to ClearCase Command text in Backticks is ignored

$stream = `cleartool lsstream -s`;

Now $stream will most likely have a trailing newline; you should remove that with chomp, and follow kennethk's advice too.

Replies are listed 'Best First'.
Re^2: ClearCase Command text in Backticks is ignored
by Deep_Plaid (Acolyte) on May 08, 2013 at 16:44 UTC

    Hi, Moritz.

    Yes, that was it! It was trailing a newline character! I actually figured this out on my own for once - small miracle! I used chomp() and that took care of it (along with Ken's response). Thank you both!!