qazwart has asked for the wisdom of the Perl Monks concerning the following question:
For years, I've noticed that there's an use if pragma in Perl. How would I use it?
The Perldoc on it is sort of sparse. What is CONDITION, and how would I set it? Since this is a pragma, it's executed before anything in my code, so I can't use variables or constants as a condition:
use if CONST, Foo::bar;Is the if pragma used, and if so, how?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you use the if pragma?
by hdb (Monsignor) on Apr 08, 2013 at 16:25 UTC | |
|
Re: How do you use the if pragma?
by LanX (Saint) on Apr 08, 2013 at 21:07 UTC | |
|
Re: How do you use the if pragma?
by tobyink (Canon) on Apr 08, 2013 at 23:27 UTC | |
|
Re: How do you use the if pragma?
by Anonymous Monk on Apr 08, 2013 at 20:55 UTC |