in reply to Re: Perl Gotchas.
in thread Perl Gotchas.

This isn't actually a parser problem, it's an artifact of the language. It's perfectly legal to write subs within subs, so there's no good way for perl to determine when you meant to close off that first curly brace.

Replies are listed 'Best First'.
Re: Re: Re: Perl Gotchas.
by mpeppler (Vicar) on Nov 20, 2003 at 17:46 UTC
    You're quite right.

    But that still makes finding the offending missing curly difficult - which is what this thread is about, no? :-)

    Michael

      It can be hard sometimes, if you write untidy code ;-) If you consistently pay attention to indentation, missing curlies aren't /too/ hard to spot. If, however, you have other people's untidy code (ahuh), you might want to view it with some program like nedit. This program will show you the opening or closing curly, by selecting the other, which would solve your problem too.

      --
      B10m