ovedpo15 has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks,
I have a module XYZ.
I would like to use it in my code $USE_XYZ is enabled. I tried to add:
How can I acheive this behaviour?
I have a module XYZ.
I would like to use it in my code $USE_XYZ is enabled. I tried to add:
but it looks like it still being used, even though $USE_XYZ is undefined.begin { if($ENV{USE_XYZ} == 1) { use XYZ; } }
How can I acheive this behaviour?
Back to
Seekers of Perl Wisdom