in reply to Global Variables
I had to changet the td tag to tds just to get it past the perlmongers editor.
That's because you didn't put your code inside <code> tags. Please read Writeup Formatting Tips.