Because despite being posted on a perl forum, and regardless of your self proclaimed abilities this isn't valid code, and has errors a beginner would have been able to spot within the first few hours of the language. You also responded to yourself again, but perhaps talking to yourself is the only time anything makes sense to you.