samtregar has asked for the wisdom of the Perl Monks concerning the following question:
BEGIN failed--compilation aborted at /home/sam/xxx/lib/XXX/Script.p +m line 117. Compilation failed in require at bin/yyy_loader line 93. BEGIN failed--compilation aborted at bin/yyy_loader line 93.
This happens even when I call die() with a string ending in a new-line, which usually inhibits the call trace. Seeing this stuff about failed compilation gives my users an excuse not to read the error message patiently explaining that they need to set an environment variable to run the script.
Does anyone know how to avoid this aside from abandoning BEGIN blocks?
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BEGIN and die(), an ugly combination
by hv (Prior) on Feb 06, 2004 at 18:12 UTC | |
by samtregar (Abbot) on Feb 06, 2004 at 18:32 UTC | |
|
Re: BEGIN and die(), an ugly combination
by Fletch (Bishop) on Feb 06, 2004 at 17:49 UTC | |
by samtregar (Abbot) on Feb 06, 2004 at 17:59 UTC | |
by ysth (Canon) on Feb 06, 2004 at 18:05 UTC | |
|
Re: BEGIN and die(), an ugly combination
by ctilmes (Vicar) on Feb 06, 2004 at 17:52 UTC |