[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Novice...



Someone (tj?) posted their ATM program and asked for help. I deleted
the message by mistake. Here's your problem:

  if ($MainMenu = "1") {
    &CheckMenu;
  }

You have just assigned the value "1" to $MainMenu. The result of that operation
is always true. If you want to test for equality, you need to use == for
numbers and eq for strings.

--David

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch