http://qs321.pair.com?node_id=609475


in reply to comarison synthax question

Well, for starters you'll probably want to use && instead of &, which is a bitwise 'and'. See perlop.

Update: As to your main question, I see that others beat me to the punch. :)