![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
How can I include a module for Windows only??by pijush (Scribe) |
on Dec 17, 2003 at 14:45 UTC ( #315278=perlquestion: print w/replies, xml ) | Need Help?? |
pijush has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks! I have written a perl script which will run both in UNIX and Windows platform. This script will install a software. To install software in UNIX I have used Expect module and for windows I have used Setupsup module. But both modules are specific to one platform. To include appropriate module according to the OS I have used following code in the top of my perl script. This is working fine for Unix platform and includes Expect and in case of windows it does not include Expect. But for windows it also does not include Win32::Setupsup . How can I include both modules depending upon OS. Any help really appreciated. Thanks in advance. -Pijush
Back to
Seekers of Perl Wisdom
|
|