Takamoto has asked for the wisdom of the Perl Monks concerning the following question:
I have a very stupid question...
I need to call 'use' in a conditional statement. I do it normally like this:
use if $VersionOS eq 'Win', DBD::ODBC;
What is if need to use the following:
use if $VersionOS eq 'Win', Win32::OLE 'CP_UTF8';
This of course does not work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: use conditional
by hippo (Archbishop) on Dec 12, 2019 at 16:27 UTC | |
by haukex (Archbishop) on Dec 12, 2019 at 20:19 UTC | |
by Takamoto (Monk) on Dec 12, 2019 at 20:53 UTC | |
Re: use conditional
by BillKSmith (Monsignor) on Dec 12, 2019 at 16:14 UTC |