Just built GHC 6.6 from source (oh joy!) and upgraded to Pugs Version:
6.2.13 (r14881). After building it I did a "make install" and in the
pugs directory, I tried this:
pugs $ pugs t/general/basic.t
pugs: user error (***
Unexpected "Str"
expecting "\\", ":", "*", parameter name or ")"
at /usr/local/lib/perl6/Test.pm line 34, column 21
t/general/basic.t line 1, column 1)
However, it works when I do this:
pugs $ pugs -Iblib6/lib t/general/basic.t
1..15
ok 1 - Welcome to Pugs!
ok 2 - undef
ok 3 - unless
ok 4 - list assignment 1
ok 5 - list assignment 2
not ok 6 - my() returns LHS # TODO
# Failed (TODO) test (t/general/basic.t line 26, column 1-60)
# Actual: undef
ok 7 - if without parens
ok 8 - for without parens
ok 9 - while
ok 10 - last
ok 11 - next
ok 12 - 12.eval
ok 13 - ?? !!
ok 14 - { my $_ = 1; $_ }
ok 15 - \# We've got fun and games!
I don't have pugs here at work (or time for it, really), but I was
wondering why I appear to be getting a syntax error if I don't include
blib6/lib? That strikes me as very strange. Can anyone else reproduce
this? If not, I can dig into my system and see what's up.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
You have an old version of Test.pm (and likely, other modules too) from
an earlier 'make install'. Better wipe out your /usr/local/lib/perl6
and any other traces.
--
Gaal Yahas <ga...@forum2.org>
http://gaal.livejournal.com/
> On Tue, Dec 12, 2006 at 02:14:42AM -0800, Ovid wrote:
> > pugs $ pugs t/general/basic.t
> > pugs: user error (***
> > Unexpected "Str"
> > expecting "\\", ":", "*", parameter name or ")"
> > at /usr/local/lib/perl6/Test.pm line 34, column 21
> > t/general/basic.t line 1, column 1)
>
> You have an old version of Test.pm (and likely, other modules too)
> from
> an earlier 'make install'. Better wipe out your /usr/local/lib/perl6
> and any other traces.
Thanks. That fixed it. Now for some fun:
http://www.ic.unicamp.br/~meidanis/courses/mc336/2006s2/funcional/L-99_Ninety-Nine_Lisp_Problems.html
or http://tinyurl.com/tt9e7