Perl Monk, Perl Meditation | |
PerlMonks |
mention a non-installed module in scriptby pashanoid (Scribe) |
on Jun 15, 2011 at 05:53 UTC ( [id://909718]=perlquestion: print w/replies, xml ) | Need Help?? |
pashanoid has asked for the wisdom of the Perl Monks concerning the following question: Hello! I've searched and could not find this: How do I go about "mentioning" a module in my program that does not exist on my system. This particular module WILL NOT install on a Linux system, but will on a Win32 system. However, in the logic of the program this module will not be used unless we're on windows.... example:
See, If I run this I get an error like:
But there is no way that I can install the Win32::SerialPort on my Linux box. Nore do I want to :) Is there a way to have the module mentioned in my program and avoid the interpreter error? Live long and proseper!
Back to
Seekers of Perl Wisdom
|
|