UltraEdit doesn't do true syntax checking, unfortunately.
It just does syntax highlighting based on a regex search of the file using rules defined in the word files (perl.uew for perl).
So, it will highlight certain keywords in a syntax specific manner, but won't tell you if are writing bad code.