--- Michael Fowler <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 05, 2001 at 10:42:33AM -0700, Paul wrote:
> > If you use "or" instead of "||" you can reduce the "line noise" by
> > taking out the parens.
> > 
> >    open(FILE, $filename) 
> >        || die("Unable to open file \"$filename\": \l$!.\n");
> > 
> > becomes
> > 
> >    open FILE, $filename 
> >         or die "Unable to open file \"$filename\": \l$!.\n";
> 
> Personally, I prefer the "noisy" version, though I consider it
> anything but noisy.  Perhaps it's because 'or' came sometime after I
> learned Perl, but mostly it's because it serves to delineate what's
> what.  This may be an artifact of my C experience, or my penchant to
> use parens in order to give visual seperation from one function call
> to another.

One man's trash is another man's treasure. =o)
In this case, I don't really think it matters much.
It's more important to be comfortable with it that to stress over a few
characters that don't change the operation of the program when taken
together. ;o]
 
> TIMTOWTDI

lol -*AB*-so-lute-ly. >:o)
That's like, I personally *prefer* cuddled else's
  } else {
instead of
  }
  else
  }

To me, it looks cleaner, though Larry doesn't like it.
Mostly, I figure it's just better to be consistent, so the next guy to
read your code knows what to expect! :o)

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to