I'm pretty sure the issue is the syntax. If I'm not mistaken, => defines a value in an array (or something like that). Since Perl is executing storing it correctly, it's always coming back as a true value. If you change all of the =>'s to ==, you should be good to go.
|