in reply to Re: use conditional
in thread use conditional
use if $VersionOS eq 'Win', Win32::OLE => 'CP_UTF8';
Note that this doesn't work under strict because Bareword "Win32::OLE" not allowed while "strict subs" in use; the :: prevents the LHS of the fat comma being autoquoted. So:
use if $VersionOS eq 'Win', 'Win32::OLE' => 'CP_UTF8'; # or use if $VersionOS eq 'Win', 'Win32::OLE', 'CP_UTF8';
|
|---|