in reply to How do I find the missing curly brace??

That's not trivial without knowing the previous version.

apart of using version control (like already mentioned)

For instant feedback

For delayed analysis

update

perltidy has some additional features for code analysis, have a look.

IIRC there is also one to add extra info in a comment after each closing block.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery