[EMAIL PROTECTED] wrote:
Hi Frnds,

Hello,

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");
----------------------------------

Try this:

my $systemserver = $ENV{HOSTNAME};


John -- use Perl; program fulfillment

--
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