reyjoy has asked for the wisdom of the Perl Monks concerning the following question:

Thanks Monks, got it working now. Sorry about the tab formatting I am VB.NET programming so I am used to worry free formatting, however I fell in love with perl the first time I laid my hands on her. So for simple not so fancy formatting reports, I use perl. I used pp utility to convert perl scripts to exe so that microsoft fanatics within the company would never know that it is written in perl. Thanks Again, Reyjoy

Replies are listed 'Best First'.
Re: Unmatched right curly bracket
by planetscape (Chancellor) on Feb 14, 2012 at 06:57 UTC
Re: Unmatched right curly bracket
by NetWallah (Canon) on Feb 14, 2012 at 06:39 UTC
    Thank you for improving the formatting.

    The extra curly is between these lines:

    close (OUTPUT); #} <<<<< ### Remove this one close (MYFILE);

                “PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.”
            ― Jon Ribbens

Re: Unmatched right curly bracket
by davido (Cardinal) on Feb 14, 2012 at 06:54 UTC

    Is your tab key broken? In a pinch the space bar will work.

    This is one good reason for composing well formatted code. It's a lesson that will keep repeating itself until you take notice. Tabs help you to see block depth, among other things. Visual distinction in block depth helps in chasing down or even avoid creating bracket matching issues. If your code had been well indented the missing bracket would have been much more obvious.

    While you don't have to live with all the advice in this document, perlstyle can give you some idea of what constitutes a reasonable starting point in developing a style that works for you


Re: Unmatched right curly bracket
by fisher (Priest) on Feb 14, 2012 at 10:28 UTC