Perltidy

|

Perltidy absolutely rocks! After running a quick perl -c on my program I was greeted with the following error message that usually makes my heart sink:

Missing right curly or square bracket at ccpd.pl line 1102, at end of line
syntax error at ccpd.pl line 1102 at EOF

Bugger. So that means *somewhere* in the code I forgot to add a curly bracket. In the past this meant having to wade through 1102 lines of code trying to find where the sodding curly bracket should have gone. Not anymore. Now I just run my program through perltidy. Then you just take a peek at the error file it creates and voila you now know where to go looking:

The most recent un-matched '{' is on line 567
567: sub createAuthMessage {
                           ^

Nice :-)

Categories

About this Entry

This page contains a single entry by kev published on March 6, 2003 11:56 AM.

Error Messages was the previous entry in this blog.

Birthday Lunch is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.