in reply to no matching '}'
My usual assault on the missing '}' problem:
- Run the original code through pertidy and save the result.
- Edit the code to add a "}' as the last line of the new code.
- perltidy again and save the result.
- Run diff between the two outputs.
- Resolve/explain the diffs
For what it's worth, the last time I had to dig out of a missing brace, it was because someone had decided to use '}' as the delimiter in a compound Regex in some code originating for the 5.0.x era (Thank you Red Hat). I was contracted to bring up to the 'current version of Perl' -- 5.8.0. Sigh. Thanks again Red Hat. At least it keeps me in quick contracts.
----
I Go Back to Sleep, Now.
OGB
In Section
Seekers of Perl Wisdom