I actually should have know that--duh! Oh well, gives me a reason to buy yet
another box (YAB), this one to run Linux! Thanks!

--hsm

-----Original Message-----
From: darren chamberlain [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 2:04 PM
To: Module-Authors
Subject: Re: FW: Chess-PGN-EPD


* Hugh S. Myers <[EMAIL PROTECTED]> [2002-04-01 15:30]:
> I got this bit of email from one of the CPAN testers today. Since it works
> under Windows and since I don't run Linux I've no clue as to why the
> makefile generated by:
>
> use ExtUtils::MakeMaker;
> # See lib/ExtUtils/MakeMaker.pm for details of how to influence
> # the contents of the Makefile that is written.
> my @list_of_db_files = ('db\ECO','db\NIC','db\Opening');

This line is generating the problem.  '\' is not a valid directory
separator undef Unix.  You should use File::Spec:

  my @list_of_db_files = map File::Spec->catfile("db", $_), qw(ECO NIC
Opening);

Or something.

This produces the list ('db/ECO','db/NIC','db/Opening') under Linux,
which is correct.

Note that '/' will work as a path separator for Windows, too; it's only
command.com (and it's decendants) that are tied to '\' as a path
separator.

(darren)

--
Language is not neutral. It is not merely a vehicle which carries ideas.
It is itself a shaper of ideas.
    -- Dale Spender

Reply via email to