|The stupid question is the question not asked|
Re^2: Understanding compiletime vs. runtimeby punkish (Priest)
|on Feb 04, 2005 at 12:56 UTC||Need Help??|
full disclosure: The stuff in the BEGIN block is something I copied from another code (someone else's suggestion). It seemed to do what I wanted, so I haven't spent a lot of effort really understanding it.
Now, putting some effort to understand it, I believe what I am ending up doing is redirecting all the errors to foo.err, and all non-errors to foo.log. Which is ok. As quite a pleasant sideeffect of my ignorance, that _is_ what I want.
However -- I don't want to program to die as it seems to be doing. And, from your suggestion, it seems I will further insure that all warnings become dies. If, from what you say above, Mail::IMAPClient is just warning, why is the program die-ing?
Btw, per thor's suggestion, perl -c script.pl sends script.pl syntax OK to foo.err.
In the end -- I want there to be no die-ing at all, absolutely, unless a SIGINT is sent. In all cases other than a SIGINT, I want the error message written to foo.err and for the script to recover and merrily continue its way.
Since the above is a fair bit beyond my current understanding, I need some guidance on how to implement it.
Many thanks for your advice.