in reply to Re: Password Authentication
in thread Password Authentication

just a quick question... do we need all these parenthesis ??
this works just fine
if (uc $my_user eq uc $page_usr && uc $my_passw eq uc $page_passw) {
right??
Chady | http://chady.net/

Replies are listed 'Best First'.
Re(3): Password Authentication
by yakko (Friar) on Mar 14, 2001 at 04:36 UTC
    In this case, && has lower precedence than eq, so parens aren't required... but I'd always use parens just to make it clear in code that that's the precedence I wanted.

    --
    Me spell chucker work grate. Need grandma chicken.

Re: Re: Re: Password Authentication
by archon (Monk) on Mar 14, 2001 at 04:09 UTC
    The parenthesis make it easier to read, IMHO.