can someone explain how this code segment works:

# execute a command which may be on a local system or a remote system
sub _lrdo {
     my ($cmd,$exec,$rtn);
     ($cmd) = (@_);
     $exec = (_localsys()) ? $cmd : "$SRSH{$SYS} $SYS $cmd";
     $rtn=_do($exec);
     return "$rtn";
}

sub _haconfmakero {
    _lrdo("$VB/haclus -value ReadOnly");
}


Q1:  is the parenthes () around
  _lrdo ( .. )  optional when called?


Q2: why (_) around
  ($cmd ) = ( @_) ,

what is the desired effect of puting ( )
around @_ , and around ($cmd )

Q3: what ( ) archive in the line
   my ($cmd,$exec,$rtn );

thanks


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


Reply via email to