Chomp

Ned Cunningham
POS Systems Development
Monro Muffler Brake
200 Holleder Parkway
Rochester, NY 14615
(585) 647-6400 ext. 310
[EMAIL PROTECTED]

                -----Original Message-----
                From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
                Sent:   Friday, November 14, 2003 1:49 PM
                To:     Wiggins d Anconia
                Cc:     [EMAIL PROTECTED]
                Subject:        Re: Capturing system call output value

                Thanks that help. but I notice there is a newline included in the 
variable
                when using the ($name)=`uname -n`;

                Is this a normal thing that I should strip?

                >
                >
                >> Can someone help me with capturing an output of a system() call?
                >>
                >> ie ($a)=system("uname -n");
                >>
                >> where $a would have the output value.
                >>
                >
                > perldoc -q 'output of a command'
                >
                > You want backticks instead, though there are better ways to come by 
the
                > sysem name, and don't use $a....
                >
                > ($name) = `uname -n`;
                >
                > See the Sys::Hostname module...
                >
                > http://danconia.org
                >



                -----------------------------------------
                eMail solutions by 
                http://www.swanmail.com

                -- 
                To unsubscribe, e-mail: [EMAIL PROTECTED]
                For additional commands, e-mail: [EMAIL PROTECTED]
                

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to