This is a great Perl editor for windows
http://enginsite.com/Perl.htm
It's free, and has a registered version with more features.
Once you get the hang of it, it will show you where you screwed up with your typos (has built in Syntax Check, Expressions Tester,etc).