At 10:47 AM 4/4/00 -0400, Charles Lane wrote:
>Dan Sugalski  ([EMAIL PROTECTED]) wrote:
>
> > At 10:23 AM 4/4/00 -0400, Jordan Henderson wrote:
> > >Maybe VMS.C should put out a message to stderr if PERL_ROOT is not defined
> > >or if
> > >the VMSPIPE.COM can't be found when it is required.  That might help.
>
> > Or we could, I suppose, embed a copy of VMSPIPE.COM inside VMS.C and dump
> > it out to SYS$SCRATCH if we can't find a real one, though that's probably
> > going a little *too* far...
>
>*Sigh* that way lies the "writing tempfiles" solution...
>
>I don't think it's a problem to write out a reasonably informative
>error message, since the problem is localized at a single place in the
>code.  We certainly should do so if we're doing some sort of active
>search for VMSPIPE, and point the user in the right direction hopefully.

That works. Throw a warning if we can't find it and be done with it all. We 
probably ought to cache the ultimate location once we find it, perhaps 
keeping the FID and keeping the thing open so it can't be swapped out from 
under us. Or maybe that's just too much work and we should re-search if the 
one we found the first time's not there later.

> > When you get right down to it, perl's hosed if it's library's
> > dysfunctional, so if folks *do* mess things up we can just tell 'em "Don't
> > *do* that!"
>
>    %PERL-F-DOPESLAP, logical PERL_ROOT not found, don't *DO* that!

I like! :) Hoff did say that the perl prefix was in the process of being 
registered. Maybe we should assault the new lexical warnings stuff to set 
$^E as it goes along.

>I do wonder what kind of weird situations one might run up against:
>perl embedded with libraries not used/libraries on a remote DECNET
>node that's unreachable most of the time; etc.  etc.  But at some
>point you have to say 'enough!'

Yelling if VMSPIPE.COM can't be found in @INC is probably good enough. The 
only reason to do anything else would be if .ZIP/.tar.gz packaging of the 
perl tree happens, but that's got issues with shareable images as well so 
we can cross that bridge once it's actually built...

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to