Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: no matching '}'

by fionbarr (Friar)
on Feb 03, 2015 at 17:40 UTC ( [id://1115421]=note: print w/replies, xml ) Need Help??


in reply to Re: no matching '}'
in thread no matching '}'

yes....perlcritic, perltidy and 'perl -c' report that all is fine. using strict and warnings

Replies are listed 'Best First'.
Re^3: no matching '}'
by LanX (Saint) on Feb 03, 2015 at 17:47 UTC
    I'm just realizing that you are talking about a vi problem with your way of coding...

    Ahhhhhhhh!

    Cheers Rolf

    PS: Je suis Charlie!

      ... a vi problem ...

      Like maybe vi syntax parsing getting confused by some Perl statement like

      c:\@Work\Perl>perl -wMstrict -le "my $string = 'xxx foo{ yyy'; print 'match' if $string =~ /foo{/; " match


      Give a man a fish:  <%-(-(-(-<

      perhaps it's a problem with vi?

        Resolved by changing to emacs? <duck />

        Update: Try running it through a pretty-printer. That should, at least, align the blocks so that the curly brace is no longer an issue. Indentation can make so much difference when reading source.

        --MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found