Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Problem with conditional module loadby pgduke65 (Acolyte) |
on Feb 13, 2015 at 20:27 UTC ( [id://1116660]=perlquestion: print w/replies, xml ) | Need Help?? |
pgduke65 has asked for the wisdom of the Perl Monks concerning the following question: I am obviously missing something simnple here. But I cannot seem to find it. Please help me to understand what I am doing incorrectly. The Goal: Write a module that will conditionally include other modules as needed based on the current o/s. Idea calling script includes Module Security. Module Security then includes either Windows module or Unix module depending on the $^O variable value. I have searched here and googled and have tried the following:, Test Calling Script
Security Module Code
Win32Security Module
UnixSecurity Module
The Error: Can't locate Win32Security.pm in @INC (you may need to install the Win32Security module) (@INC contains: C:/Perl C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at (eval 1) line 1. BEGIN failed--compilation aborted at C:/Perl/SecurityV1.pm line 38. Compilation failed in require at C:\Perl\TestLoad.pl line 5. BEGIN failed--compilation aborted at C:\Perl\TestLoad.pl line 5. C:\Perl> The C:\Perl Directory contains all modules and the calling script.>
Back to
Seekers of Perl Wisdom
|
|