Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: How to have OS specific code sections in Perl

by Anonymous Monk
on Nov 01, 2012 at 00:56 UTC ( #1001765=note: print w/ replies, xml ) Need Help??


in reply to Re^2: How to have OS specific code sections in Perl
in thread How to have OS specific code sections in Perl

Re^3: code that runs (and works) on both Linux and Win32, Devel::AssertOS, Devel::CheckOS, Re: mention a non-installed module in script, Perl::OSType, Module::Loaded

use if eval { require MIDI::ALSA; MIDI::ALSA->VERSION > 0.01; 1 } , 'M +IDI::ALSA', ...; use if not exist $INC{'MIDI/ALSA.pm'}, 'something::else', ...;


Comment on Re^3: How to have OS specific code sections in Perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-07-28 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls