Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How do I find the missing curly brace??

by LanX (Saint)
on Dec 30, 2024 at 18:22 UTC ( [id://11163441]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I find the missing curly brace??
in thread How do I find the missing curly brace??

consider this convoluted example (Perl would catch this anyway)
sub bla { print "yadda"; my %hash = { foo => 1, ); }

the problem is in line 3, but your code will report line 1.

and if you add a # } after a comment in line 2 it won't report anything.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11163441]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2025-12-17 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (98 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.