about ( .)



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

.



Relevant Pages

  • Re: rsh moving me to ssh
    ... The key is to make sure a copy of the local system rsa_key.pub in your ... remote .ssh directory. ... aix7 is the local system and aix6 is the remote system. ... The RSA host key for 'kingdom' differs from the key for the ...
    (comp.unix.questions)
  • Re: problem with router---NAT and caching?
    ... Alpha with address 192.168.1.202 is up and running. ... remote system A. From there, telnet to remote system B. From there, ... Log out of the local system. ...
    (comp.os.vms)
  • Re: PEA0: Errors
    ... LOCAL SYSTEM ID, 000000000405 ... REMOTE SYSTEM ID, 000000000401 ... The channel between local node 1.5 and remote node 1.1 is loosing a ... these are probably CLUEXIT crashes. ...
    (comp.os.vms)
  • Re: PEA0: Errors
    ... LOCAL SYSTEM ID, 000000000405 ... REMOTE SYSTEM ID, 000000000401 ... The channel between local node 1.5 and remote node 1.1 is loosing a ... these are probably CLUEXIT crashes. ...
    (comp.os.vms)
  • Re: Quickest way to bulk copy many files from one disk cluster to another
    ... >local system example): ... >You can expand this by setting up a .rhosts file on the remote system. ... >rsh does 'cause I've used it. ... but ufsdump is faster. ...
    (comp.unix.solaris)