John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:

I downloaded Pugs, and the basic interpreter runs. But, the examples try to load modules. Pugs doesn't come with any modules. Is this found somewhere else, is it supposed to point to my Perl5 lib tree, or what?

—John

Replies are listed 'Best First'.
Re: Getting Started with PUGS
by eric256 (Parson) on May 18, 2006 at 21:52 UTC

    Since i'm not sure where you got pugs i would recommend visitng http://pugscode.org and chating on the IRC pugs channel given there.


    ___________
    Eric Hodges
Re: Getting Started with PUGS
by jaldhar (Vicar) on May 21, 2006 at 21:50 UTC

    Pugs uses a similiar directory layout as perl5 for modules. pugs -V will tell you configuration info. On my system the value of @*INC is

    @*INC: /usr/lib/perl6/5.8 /usr/share/perl6/5.8 /usr/local/lib/perl6 /usr/local/share/perl6 /usr/share/perl6/5.8/auto/pugs/perl6/lib /usr/local/share/perl6/auto/pugs/perl6/lib .
    Do you have anything similiar? Are there modules in there? The modules can be found in the ext directory of the pugs source so you can copy them to the appropriate places if they somehow didn't get installed.

    --
    જલધર

      I extracted this build of PUGS to "I:\Program Files\Languages\PUGS" and @*INC is:
      pugs> @*INC ("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", ".")
      Drive C: is a stub with some DOS stuff on it.

      However, I do have a "I:\Program Files\Languages\PUGS\lib" directory, but no "site" directory.

      Regular Perl will look up the path of the executable its running from, and set up the includes relative to that. So, I can run it off a USB key for example simply by copying the directory tree to it.

      Any idea where the configuration is kept?

      —John

        If I remember correctly, regular Perl also hard-codes it INC path.

        You can modify the INC path with the PERL6LIB environment variable. Arguably, a "relocatable Pugs" would be a worthwhile feature to implement. I wonder how does Nicholas's recent work on relocperl does it...