On Nov 28, 2007 4:09 AM, ciwei2103 <[EMAIL PROTECTED]> wrote: > > Q1: is the parenthes () around > _lrdo ( .. ) optional when called? >
what's the meanings of "parenthes"? you can call _Irdo(...) directly in the script. > > Q2: why (_) around > ($cmd ) = ( @_) , This can be written as: ($cmd) = @_; the () around @_ is not needed, since @_ is already a list. > > what is the desired effect of puting ( ) > around @_ , and around ($cmd ) putting () around @_ is not needed as I've said. but () around $cmd is required, this force the entire expression to be into list context. without (), the expression is in scalar context, $cmd = @_ will return @_ 's length. > > Q3: what ( ) archive in the line > my ($cmd,$exec,$rtn ); > No special meanings here. Instead you can say: my $cmd; my $exec; my $rtn; by saying: my ($cmd,$exec,$rtn); is shorter for the keyboard input. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
