in reply to No errors listed

This time the problem was the following line: th = $dbh2->prepare("select c.name,c.extractexpression,c.valuetype from outputs as c where c.commandid='$cmdid'"); Note that there is a problem with the 'variable' at the front. Should have been: $sth = $dbh2->prepare("select c.name,c.extractexpression,c.valuetype from outputs as c where c.commandid='$cmdid'"); So normal typo problem. Still, why no message about bareword?

Replies are listed 'Best First'.
Re^2: No errors listed (loading?)
by tye (Sage) on Oct 29, 2014 at 17:18 UTC

    How are you loading the module that includes this code? (Or the module that loads the ... that loads the broken code.)

    Leave the syntax error and delete as much code as possible while still keeping the lack of the original error message. This will help you narrow down what is eating the error message (and will likely get you to the point of being able to post a reproduceable example).

    Is this Windows, by any chance? I've seen 'do' fail silently in Windows when the included file has errors, but only sometimes.

    - tye        

      The error is in the main module. There is another loaded, but it's not throwing any errors and is stable code. It is Linux, specifically RHEL 6.5 derivative. I've seen this running similarly lengthy pieces of monolithic code since RHEL 6.0 (Perl 5.10). Never saw it in Perl 5.8