In addition to all the help from the other monks, you should do two more things:
Put use strict; at the top of your program. That will help you catch lots of errors before you run your program.
Indent your code so you can see where the braces should go. Lots of editors allow you to match tags, so you should see if yours does. If not, think about changing to one that does. It will save your sanity. :)
Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.