Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Include a package based on OS (ssearch)

by Anonymous Monk
on Jan 20, 2014 at 09:27 UTC ( #1071285=note: print w/replies, xml ) Need Help??


in reply to Include a package based on OS.

I search using your keywords

on perlmonks only  [based on os] based on os -> Splitting an extension based on OS

if , Devel::CheckOS

use if ($^O eq "MSWin32"), 'Win32::Process'; use if ($^O eq "MSWin32"), 'Win32::SearchPath'; use if ($^O ne "MSWin32"), 'POSIX';

using DuckDuckGo  [ddg://site:perlmonks.org Include a package based on OS.] site:perlmonks.org Include a package based on OS. -> How can I include a module for Windows only??

Using Google  [google://site:perlmonks.org Include a package based on OS.] site:perlmonks.org Include a package based on OS. -> How can I include a module for Windows only??, including modules during runtime and dealing with OS specific (constants) code block, Splitting an extension based on OS

My memory Re: How do you use the if pragma? , Re^5: Problems with forking, Re^3: Loading a module at runtime, Re: mention a non-installed module in script, Re: constants wont optimize, Re^3: How to have OS specific code sections in Perl, Re: Variable as module name? (modern perl), Re^2: Redefining Imported Subs: of scope and no, use Module::Implementation

Perl::OSType

use Perl::OSType qw' is_os_type '; use if is_os_type('Windows'), qw' Win32::SerialPort '; use if not is_os_type('Windows'), qw' Device::SerialPort ';

ssearch , its for everybody

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1071285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-12-09 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?