in reply to Re^7: Syntax checking without BEGIN blocks
in thread Syntax checking without BEGIN blocks

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^8: Syntax checking without BEGIN blocks

Replies are listed 'Best First'.
Re^9: Syntax checking without BEGIN blocks
by chromatic (Archbishop) on May 01, 2006 at 18:37 UTC
    No, you pointed me to an Acme (joke ) module of some sort, which I took for a troll attempt.

    Obviously; you had absolutely no curiosity about how it worked nor why I suggested that it could (in my mind, reliably) help you not run BEGIN blocks. (Now I don't guarantee that that will solve your problem, as the presence of eval and symbol table manipulation changes the rules of the game.)

    I stand by my stance that the perl designers made a bad choice, and should fix it however they need to.

    I don't know any Perl designer who agrees with you, so I say with some confidence that that's never going to happen. Good luck with Anonyperl.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^9: Syntax checking without BEGIN blocks
by john_oshea (Priest) on May 01, 2006 at 18:34 UTC

    As mentioned right at the start of this thread: in its current state Perl is unable to syntax check code inside BEGIN blocks without executing that code. And that is unlikely to change within the lifetime of your current project. Given that you have $some_quantity of code to verify, all you can really do is follow the advice given by TedPride and chromatic earlier, or come up with some other workaround. Assuming, of course, that you want to get the job done.

    If, however, you just want to vent, may I refer you to something which may explain the "vehemence" you're seeing.

    Good luck.