Re: About the error message in Perl : "Missing right curly braces"
- From: learn.tech123@xxxxxxxxx (Amit Saxena)
- Date: Thu, 21 Aug 2008 14:31:07 +0530
On Thu, Aug 21, 2008 at 2:23 PM, Stewart Anderson <
stewart.anderson@xxxxxxxxxxxxx> wrote:
Hi
-----Original Message-----braces"
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
the
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
last line of the program. If the program is very big, matching all thelots
properly nested curly braces and finding out the mismatched one takes
of effort and time. It happened with me yesterday when I was workingwith
a[Stewart Anderson]
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.
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/
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
- Follow-Ups:
- Re: About the error message in Perl : "Missing right curly braces"
- From: Peter Scott
- RE: About the error message in Perl : "Missing right curly braces"
- From: Stewart Anderson
- Re: About the error message in Perl : "Missing right curly braces"
- References:
- About the error message in Perl : "Missing right curly braces"
- From: Amit Saxena
- RE: About the error message in Perl : "Missing right curly braces"
- From: Stewart Anderson
- About the error message in Perl : "Missing right curly braces"
- Prev by Date: RE: About the error message in Perl : "Missing right curly braces"
- Next by Date: RE: About the error message in Perl : "Missing right curly braces"
- Previous by thread: RE: About the error message in Perl : "Missing right curly braces"
- Next by thread: RE: About the error message in Perl : "Missing right curly braces"
- Index(es):
Relevant Pages
|