Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by perltux (Beadle)
on Oct 31, 2012 at 18:43 UTC ( #1001727=note: print w/ replies, xml ) Need Help??


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

The 'use if' line seems to work only if written as follows:

use if ($^O eq 'linux'), 'MIDI::ALSA' => ('SND_SEQ_EVENT_PORT_UNSUBSCR +IBED', 'SND_SEQ_EVENT_SYSEX');

Any other way to write the 'use if' CONDITION doesn't seem to work.
Weird...


Comment on Re^2: 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://1001727]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-10-22 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls