good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: including modules during runtime and dealing with OS specific (constants) code blockby cdarke (Prior) |
on Aug 02, 2011 at 07:34 UTC ( [id://917990]=note: print w/replies, xml ) | Need Help?? |
The Win32 issues discussed above not withstanding, a better way of conditonally including modules is to use the if pragma. Here is a working fragment, you should be able to modify it for the APIs you need, and for Mac:
In Section
Seekers of Perl Wisdom
|
|