[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");
----------------------------------
Thanks in advance
Arjun
Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL
PROTECTED] immediately
and destroy all copies of this message and any attachments.
system doesn't capture output, use backticks (``) for that:
$systemserver = `hostname`;
--K-sPecial
[ http://xzziroz.freeshell.org
irc://xzziroz.dtdns.net ]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>