Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Mark Leighton Fisher (4252)

Mark Leighton Fisher
  (email not shown publicly)
http://mark-fisher.home.mindspring.com/

I am a Systems Engineer at Regenstrief Institute [regenstrief.org]. I also own Fisher's Creek Consulting [comcast.net].
Friday November 10, 2006
01:00 PM

pmtools-perl6: PODs to Start With

[ #31568 ]
It looks like the lowest-hanging fruit for pmtools-perl6 to pluck is the various lists of PODs (basepods, stdpods, etc.) As Pugs does not have a Config module yet, I've been working on a Perl6 program to convert CORE::Pugs::Config into a Perl6 module. There is a bugbear, though I haven't been able to configure my PC to use regexes on Win32. Under cygwin, Parrot fails to initialize. Using a BAT file to start Pugs, I only get a little further:

pugs> rule jfk { kennedy };
pugs> "abc" ~~ /<jfk>/;
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/site/lib C:/Perl/lib .) at (eval 3) line 1.

*** Cannot parse regex: <jfk>
*** Error: Error: Can't call method "__RUN__" on an undefined value.

I'm sure I'm doing something stupid I'm just not sure which stupid thing I'm doing. If anyone has any hints, please let me know. (Do I need a "use v6-alpha"?)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Try a repository check out from http://svn.pugscode.org/pugs/ [pugscode.org] and "perl Makefile.PL ; nmake ; nmake install" should fix this problem. If you'd like to get something working quickly, copy perl5/Pugs-Compiler-Rule/lib/* into C:\Perl6\site\lib/auto/pugs/perl5/lib/.

    Also maybe mail the bindist packager that C:\Perl6\site\lib/auto/pugs/perl5/lib really needs to be packaged in the .zip file...