Hi I have this code:
.......
sub MakeEth()
{     
    unless ($_Globals{NICIP_ADRESS}==$IPREAL[0])
    {
        $_Globals{ETH_NETIF} eq "eth0";
    }    
    else{
        
        $_Globals{ETH_NETIF} eq "eth0:1";
            
         } 
}

.......

sub StartDhcp()
{
    my $_cmd = $_Os{$_Globals{OS}}{DHCPD} .  " " . $_Globals{ETH_NETIF};
    system($_cmd);
}

I wanted to make $_Globals{ETH_NETIF} affected by what it is in the scope 
MakeEth because in the sub StartDhcp $_Globals{ETH_NETIF} is undef I would to 
make it a variable global after been affected by sub MakeEth.

Still thanks


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

Reply via email to