John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
Now after getting that the first time, I found where the .pm file is located (D:\pugs\perl5\Pugs-Compiler-Rule\blib\lib\Pugs\Runtime\Match and D:\pugs\perl5\Pugs-Compiler-Rule\lib\Pugs\Runtime\Match), and used PERL6LIB to tell it. So my session continues,pugs> my $z= "abc12345we678" "abc12345we678" pugs> $z ~~ ?/\d+/ Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) { unshift @INC, 'C:\Perl6\site\lib/auto/pugs/perl5/lib'; eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@; } 'Pugs::Runtime::Match::HsBridge' " *** Can't locate Pugs/Runtime/Match/HsBridge.pm in @INC (@INC contains +: C:\Perl6\site\lib/auto/pugs/perl5/lib C:/Perl/lib C:/Perl/site/lib +.) at (eval 3) line 1. *** Cannot parse regex: \d+ *** Error: Error: Can't call method "__RUN__" on an undefined value.
You can see that the @INC contents of the error message do not match what I see here. My immediate question is, what is going on here?. Beyond that, what directories should be in the LIB path, why doesn't the installed tree look anything like the default (I figured it would just have the wrong root as it assumes C:), and why isn't there a * in the name @INC anymore?pugs> say @INC.join("\n") D:\pugs\perl5\Pugs-Compiler-Rule\lib C:\Perl6\lib C:\Perl6\lib C:\Perl6\site\lib C:\Perl6\site\lib C:\Perl6\lib\auto\pugs\perl6\lib C:\Perl6\site\lib\auto\pugs\perl6\lib . Bool::True
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pugs configuration - file locations
by moritz (Cardinal) on Feb 27, 2008 at 08:13 UTC | |
by John M. Dlugosz (Monsignor) on Feb 27, 2008 at 08:48 UTC | |
by moritz (Cardinal) on Feb 27, 2008 at 08:59 UTC | |
by John M. Dlugosz (Monsignor) on Feb 27, 2008 at 09:08 UTC | |
by moritz (Cardinal) on Feb 27, 2008 at 09:24 UTC |