in reply to Re: CPAN Config question on Win2000
in thread CPAN Config question on Win2000

OK, a solution hit me and it works (apparently), although it may seem odd.

Read more if you are curious...

I remembered something odd with how windoze handled the long paths in DOS boxes (older versions, as win2K DOS box works normally). When paths had spaces you could enclose it in quotes, when the path was too long it would chop it off at six characters and append ~1 as below:

E:\Program Files\Microsoft Visual Studio\VC98\bin becomes

I entered the path in this fashion in the CPAN config for make and make seems to make ;-)

<Ammendment>If you need to use this approach make sure you see reply by shenme for more information.

Use dir /x to get the real short name which "may not" have a ~1.

  • Comment on Re: Re: CPAN Config question on Win2000

Replies are listed 'Best First'.
Re: Re: Re: CPAN Config question on Win2000
by shenme (Priest) on Sep 01, 2003 at 20:14 UTC
    Yes, that's the way to do it, with one caveat.   It isn't always "~1".   To be sure of what to use go into the directories concerned and run "dir /X" to see the short names.   When the long names overlap sometimes the short names will end up as things like "CREATE~4.SQL" or even "CRC02D~1.SQL".
      Excellent, I did not know of that trick. I will add that to the list dos/win tidbits. I appreciate the extra info.