> Charles Lane <[EMAIL PROTECTED]> wrote:
> | Charles Bailey  [EMAIL PROTECTED] wrote:
> | > Charles Lane <[EMAIL PROTECTED]> wrote:
> | I'd like to note that if we start using Perl features (@INC, $^X) for
> | things other than what they were intended, we are asking for trouble.
> | Just my opinion.

> . . . and a reasonable one, too.  I'm not sure we're straying from the
> intended purpose of @INC, though -- this is a type of library file, in
> some ways like the (new) dependence of CORE::glob() on File::Glob() (under
> certain non-VMS OSs) or -d on perldb.pl.

Well, the reaction I was hoping to avoid was "why does -I or it's lack
affect piped open, when I don't use modules".

That's really the difficulty with subprocesses in the test suite: you
don't necessarily pass the -I flags (for VMS we have to quote around
-I, so I *know* they don't always get used) to a subprocess, and
otherwise the subprocess will be crippled for system() and piped i/o.

This is just *asking* for a mysterious problem in future. At least
logicals are automatically available to subprocesses, so they'll have
the same basic environment as their parent process.

(I had written a bunch of point-by-point replies...but I don't think it
would take this discussion in a useful direction.  So instead, some
generalities)

I'm not sure why we're trying to avoid PERL_ROOT during testing; it's
a cause of a lot of the grief we're having now.  Perhaps it's some
unix thing, since those poor guys don't have logicals to help them out.
Sort of like programming without pointers, doncha know :)

It seems much more natural, if we're testing code, that we'd want
to have the code in an environment as close to "normal" as possible.
Meaning that PERL_ROOT would be defined and pointing to all the
module goodies put in place by the build.

If we go with Dan's suggestion of requiring PERL_ROOT (which I support)
then the remaining question is "find VMSPIPE using @INC" or "find
VMSPIPE using something based more directly off PERL_ROOT".

I'm going to have to go looking at the code to see how Perl does it
before I venture a more considered opinion on the subject. Suggestions
of where to look will be gladly accepted.
--
 Drexel University       \V                     --Chuck Lane
----------------->--------*------------<[EMAIL PROTECTED]
     (215) 895-1545      / \  Particle Physics  [EMAIL PROTECTED]
FAX: (215) 895-5934        /~~~~~~~~~~~         [EMAIL PROTECTED]

Reply via email to