about ( .)
- From: ciwei2103@xxxxxxxxx (Ciwei2103)
- Date: Tue, 27 Nov 2007 12:09:06 -0800 (PST)
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
.
- Follow-Ups:
- Re: about ( .)
- From: Tom Phoenix
- Re: about ( .)
- From: Jeff Pang
- Re: about ( .)
- Prev by Date: Extracting one record from multiple-records textfile
- Next by Date: Re: Trouble with Email::MIME modules
- Previous by thread: Extracting one record from multiple-records textfile
- Next by thread: Re: about ( .)
- Index(es):
Relevant Pages
|