我有一个需要在Windows和Linux上运行的Perl脚本.问题是我需要use一个仅适用于Windows的Perl模块.
use
我试过下面的,但它仍然包括你的WindowsStuff包.
WindowsStuff
use strict; if ($^O eq 'MSWin32' ){ use My::WindowsStuff; } use File::Basename; use Getopt::Long; ... ...
linux windows perl module perl-module
linux ×1
module ×1
perl ×1
perl-module ×1
windows ×1