Re: About the error message in Perl : "Missing right curly braces"



On Thu, Aug 21, 2008 at 2:23 PM, Stewart Anderson <
stewart.anderson@xxxxxxxxxxxxx> wrote:


-----Original Message-----
From: Amit Saxena [mailto:learn.tech123@xxxxxxxxx]
Sent: 21 August 2008 08:56
To: Perl
Cc: Amit Saxena
Subject: About the error message in Perl : "Missing right curly
braces"

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.
[Stewart Anderson]
I usually go back to where I was last editing.

I do regular syntax checks to see if I missed anything as I'm going too.



Information in this email including any attachments may be privileged,
confidential and is intended exclusively for the addressee. The views
expressed may not be official policy, but the personal views of the
originator. If you have received it in error, please notify the sender by
return e-mail and delete it from your system. You should not reproduce,
distribute, store, retransmit, use or disclose its contents to anyone.
Please note we reserve the right to monitor all e-mail communication through
our internal and external networks. SKY and the SKY marks are trade marks of
British Sky Broadcasting Group plc and are used under licence. British Sky
Broadcasting Limited (Registration No. 2906991), Sky Interactive Limited
(Registration No. 3554332), Sky-In-Home Service Limited (Registration No.
2067075) and Sky Subscribers Services Limited (Registration No. 2340150) are
direct or indirect subsidiaries of British Sky Broadcasting Group plc
(Registration No. 2247735). All of the companies mentioned in this paragraph
are incorporated in England and Wales and share the same registered office
at Grant Way, Isleworth, Middlesex TW7 5QD.

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/



Hi

Assuming you are getting the buggy code for the first time and you need to
track which line contains that curly brace which is causing that problem,
what your modified approach be ?

This is exactly the same scenario which I have faced just now.

Thanks & Regards,
Amit Saxena


Relevant Pages

  • RE: About the error message in Perl : "Missing right curly braces"
    ... Subject: About the error message in Perl: "Missing right curly ... curly brace in the Perl program, but it specifies the line number as ...
    (perl.beginners)
  • Re: About the error message in Perl : "Missing right curly braces"
    ... Subject: About the error message in Perl: "Missing right curly ... curly braces". ... SKY and the SKY marks are trade marks of ...
    (perl.beginners)
  • Re: error message 0800CCC0B
    ... Account /pop.tools.sky.com'. ... Express and Outlook 2002 and older), and instructions from Sky. ... It is a Sky wireless router supplied by SAGEM. ... Please post the exact error message you're getting when you ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: problems with Perl RegEx match
    ... Missing right bracket at ./LogPreProcessor_Inetprod.pl line 64, ... Perl didn't encounter it. ... when I used the following search term in google to look ... considering it's an error message from an older Perl - in newer Perls, ...
    (comp.lang.perl.misc)
  • Re: Sky By Broadband Problem - Counter Performance Libraries
    ... right i have installed me sky by broadband program and am getting an ... upon asking sky about it i received the reponse below ... that the error message you've experienced, ... by a core Microsoft Windows issue on your computer. ...
    (microsoft.public.windowsxp.general)