UPDATE:My response below is not fully correct. The if pragma can work if combined with an environment variable. See post from Ken for details
lbe
Original below:
No, it will not. I considered this also. The if pragma is applied at compile time, not at run time. Since Getopt::Long has not yet processed the commend line, I do not yet have the information needed to provide the conditional for the if pragma.
In reply to Re^2: Conditional loading of module with global exports
by learnedbyerror
in thread Conditional loading of module with global exports
by learnedbyerror
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |