in reply to Re: No, it is not
in thread Is this code correct

This error means that your file has an unbalanced set of brackets. The code you posted is fine in this regard. Might I suggest making a copy of main.pl and systematically deleting subroutines from the tail of the file until this error goes away, thus identifying the guilty party?

Replies are listed 'Best First'.
Re^3: No, it is not
by andye (Curate) on Jan 28, 2009 at 16:54 UTC
    The code you posted is fine in this regard.

    Actually, it isn't. The OP's inconsistent indenting is hiding problems in this respect.

    update: doh - my eyes crossed due to the terrible layout. sorry, no, the code above does have matching brackets. evidently this problem is elsewhere.