Hi all,

I want to know the best approach that should be used to find the extra curly
brace when any Perl program aborts with the error message as "Missing right
curly braces".

Though the error message is simple enough to suggest that there is an extra
curly brace in the Perl program, but it specifies the line number as the
last line of the program. If the program is very big, matching all the
properly nested curly braces and finding out the mismatched one takes lots
of effort and time. It happened with me yesterday when I was working with a
perl code of around 3000 lines long and it took me nearly 1.5 hours to find
out the exact line where the problem is.

Thanks & Regards,
Amit Saxena

Reply via email to