vsespb has asked for the wisdom of the Perl Monks concerning the following question:
I am inventing some workarounds for this Re: Circular dependencies when using the perl syntax checker problem, and I want to detect that current program run is not a real run but just a syntax check (with "perl -c").
What is the best way to detect this. Currently I only see that $0 is empty in this case.
BEGIN/CHECK/UNITCHECK/END/etc and GLOBAL_PHASE does not look helpful here
What is the best way to detect this. Currently I only see that $0 is empty in this case.
BEGIN/CHECK/UNITCHECK/END/etc and GLOBAL_PHASE does not look helpful here
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Detecting syntax check run
by ambrus (Abbot) on Nov 23, 2013 at 19:48 UTC | |
by vsespb (Chaplain) on Nov 23, 2013 at 20:00 UTC |
Back to
Seekers of Perl Wisdom