Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: CPAN Config question on Win2000

by knexus (Hermit)
on Sep 01, 2003 at 15:54 UTC ( #288155=note: print w/replies, xml ) Need Help??

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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://288155]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-10-23 04:43 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (86 votes). Check out past polls.