The stupid question is the question not asked | |
PerlMonks |
Re: Conditional use of Win32::TieRegistryby Discipulus (Canon) |
on Nov 13, 2017 at 19:01 UTC ( [id://1203281]=note: print w/replies, xml ) | Need Help?? |
Hello hilitai you can check $^O to see if you are running on windows: see perlvar then require the module and eventully import, if the module uses Exporter's import.
See also use module if condition is met for suggestion about if module. PS this kind of things are worth to reside into a BEGIN block. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|