Jenda Krynicky wrote:
> 
> From: "John W. Krahn" <[EMAIL PROTECTED]>
> > "Elizabeth A. Rice" wrote:
> > >
> > > What I've written so far....
> > >
> > > @ARGV = ("$logfile");                # prime the diamond operator
> >           ^^        ^^
> > Useless use of quotation marks and parenthesis.
> >
> > @ARGV = $logfile;
> 
> I agree completely on the "useless use of quotes", but IMHO it's
> more readable&understandeable with the parens.
> 
> They do not change the meaning, but somehow I feel better
> assigning a list instead of a scalar to an array:
> 
>         @ARGV = ( $logfile );

Putting parenthesis around a scalar does not transform it to a list, the
parenthesis are used for precedence which is redundent in this context.


John
-- 
use Perl;
program
fulfillment

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

Reply via email to