in reply to Password Authentication

Make sure capitalization is the same on each... If you don't want to compare in a case-sensitive fashion, try this:

unless ((uc $my_user eq uc $page_usr)&&(uc $my_passw eq uc $page_passw))

Hot Pastrami

Replies are listed 'Best First'.
Re: Re: Password Authentication
by Chady (Priest) on Mar 14, 2001 at 04:06 UTC
    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/
      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.

      The parenthesis make it easier to read, IMHO.