_____  

From: Amit Saxena [mailto:[EMAIL PROTECTED] 
Sent: 21 August 2008 10:01
To: Stewart Anderson
Cc: Perl
Subject: Re: About the error message in Perl : "Missing right curly
braces"

 

 

On Thu, Aug 21, 2008 at 2:23 PM, Stewart Anderson
<[EMAIL PROTECTED]> wrote:


> -----Original Message-----
> From: Amit Saxena [mailto:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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

Hi,

 

Most decent editors have  a match brace  function  - google  for the
function  for the editor you use?

 

HTH

 

 

 

Reply via email to