in reply to Using perl module if env is enabled

use if $ENV{USE_XYZ}, 'XYZ';

The if module has been core since Perl 5.6.2.