I'm running Pugs on Windows. Trying to use the "rule" feature, I got this error:
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.
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> 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
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?

—John


In reply to Pugs configuration - file locations by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.