1. I want to be able to create a hostname => user hash table
like this 

%hosts = (
    sun1 => "bobby",
    sun2 +> "ronald",
....

)

and a scalar like this  
$hostname = qx(/usr/ucb/hostname);

2.  I want to be able to build a simple sub like this
    sub getname {
     print $getname{$hostname};   
     }
3. How can I interpolate this scalar in the key 
and then assign a scalar to the hash like this
$login = getname();
and get the return value from the scalar
print "$login";

Thanks in advance

Jaime Hourihane
CDC-IXIS

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

Reply via email to