syphilis has asked for the wisdom of the Perl Monks concerning the following question:
and# SYPH1.pm package SYPH1; $SYPH1::VERSION = '0.01'; 1;
On Windows, I run:# SYPH2.pm package SYPH2; if(defined $INC{'SYPH1.pm'}) {print "SYPH1.pm loaded\n"} else {print "SYPH1.pm NOT loaded\n"} 1;
And that all makes perfect sense to me, except for the last command.D:\>set PERL5OPT= D:\>perl -MSYPH1 -MSYPH2 -e "" SYPH1.pm loaded D:\>perl -MSYPH1 -e "use SYPH2" SYPH1.pm loaded D:\>set PERL5OPT=-MSYPH1 D:\>perl -e "use SYPH2" SYPH1.pm loaded D:\>perl -MSYPH2 -e "" SYPH1.pm NOT loaded D:\>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpected behaviour with PERL5OPT
by hippo (Archbishop) on Oct 24, 2024 at 12:36 UTC | |
by syphilis (Archbishop) on Oct 24, 2024 at 14:33 UTC | |
by choroba (Cardinal) on Oct 25, 2024 at 07:25 UTC | |
by syphilis (Archbishop) on Oct 25, 2024 at 09:43 UTC | |
by choroba (Cardinal) on Oct 25, 2024 at 10:05 UTC | |
| |
by syphilis (Archbishop) on Oct 29, 2024 at 11:23 UTC |