techman2006 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a script which run on Windows as well as on Linux. But it contains a particular functionality which is present only for Linux (which requires specific packages which are installed on Linux only).
So is there a way through which I can make inclusion of packages based on OS.
Below is pseudo code which I am trying to put.
use strict; use warnings; . . . if ($^O eq "Linux") { use DBI; } . . .
Any pointer on the same will be great.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Include a package based on OS.
by tobyink (Canon) on Jan 20, 2014 at 05:37 UTC | |
Re: Include a package based on OS (ssearch)
by Anonymous Monk on Jan 20, 2014 at 09:27 UTC |
Back to
Seekers of Perl Wisdom