Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Unmatched right curly bracket

by reyjoy (Initiate)
on Feb 14, 2012 at 06:00 UTC ( #953624=perlquestion: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://953624]
Approved by NetWallah
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-10-27 14:23 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (93 votes). Check out past polls.