BadMojo, just to elaborate a bit about cog's answer, please take a look at the relevant documentation about posting here in PerlMonks FAQ. In particular:
Writeup Formatting Tips, which will allow you format your code without putting a single <br> tag, and will let us read the code in a more comfortable fixed-spaced font;
How does editing work? (Or, What do Janitors do?). When you miss the correct title, or don't put code tags, janitors are kindly asked to clean up the situation, and I'm sure you don't find it fair that others do the work that you should normally do.
That said, welcome to PM and may your Mojo enhance with time :)