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]

Reply via email to