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', ...;
In reply to Re^3: How to have OS specific code sections in Perl
by Anonymous Monk
in thread How to have OS specific code sections in Perl
by perltux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |