in reply to Re: Mulit-Platform use case
in thread Mulit-Platform use case
That will not work stand-alone because (as moritz said) use is executed at compile time. Even if placed in a BEGIN block.
For example, on Windows:
For example, on Windows:
shows that POSIX.pm is loaded.use strict; use warnings; if ($^O ne "MSWin32") { use POSIX; } local $, = "\n"; print keys %INC
|
---|
In Section
Seekers of Perl Wisdom