On Sat, 8 May 2004, Abhijit A. Mahabal wrote:

> I was writing a few tests for the P6 parser and ran into a weird problem.
> If I have the following in a file in languages/perl6, it works as
> expected:

[...]

> Now, if I put exactly the same contents in a file in
> languages/perl6/t/parser, then I get the following error:


Okay, I traced the problem to a "use FindBin" in P6C::Parser.pm. Is it
okay to change

  use lib $FindBin::Bin/../../lib;

to

  use lib ../../lib;

or is there a good reason not to? The current version makes it necessary
to put all files that "use P6C::Parser" in the same directory, and the
change would allow:

        perl t/parser/foo.t

to work.

--Abhijit

Reply via email to