Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by perltux (Scribe)
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 having an uproarious good time at the Monastery: (6)
As of 2014-12-26 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls