in reply to conditionally include a module
As well as the require method already mentioned, there's also a standard module for this, if:
use if ($^O eq 'MSWin32'), 'Win32::OLE';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: conditionally include a module
by sgt (Deacon) on Aug 23, 2007 at 09:50 UTC | |
by DrHyde (Prior) on Aug 23, 2007 at 10:04 UTC |