Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: ClearCase Command text in Backticks is ignored

by moritz (Cardinal)
on May 08, 2013 at 15:45 UTC ( #1032627=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: ClearCase Command text in Backticks is ignored
Select or Download Code
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!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2015-07-08 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls