[EMAIL PROTECTED] wrote:
Hi Frnds,
I need to capture the current system name to a variable. I am doing
like below but , the hostname value is not getting stored in the
variable. any suggestions please ??
-----------------------------------------
$systemserver = system("hostname");
----------------------------------

See

  perldoc -q 'Why can't I get the output of a command with system()?'

Also, consider using the standard module Sys::Hostname.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to