Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Darwin and File::HomeDir

by John M. Dlugosz (Monsignor)
on May 20, 2011 at 23:50 UTC ( #905998=note: print w/ replies, xml ) Need Help??


in reply to Darwin and File::HomeDir

I've always had that problem in Windows, where the Perl tool-chain is hostile to spaces and the standard locations contain spaces. Perl is usually not installed under “Program Files” but directly under the root, like it was still 1986.

I've worked around that by using the short-name alias for the intended directory. You might be able to so something similar, creating a symbolic link to the correct directory, and having the Data Directory return that instead.

By all means, report every broken use you find. But I don't think the Makefile and CPAN tools will ever work with them.


Comment on Re: Darwin and File::HomeDir
Re^2: Darwin and File::HomeDir
by ikegami (Pope) on May 21, 2011 at 00:49 UTC

    Perl is usually not installed under “Program Files” but directly under the root, like it was still 1986.

    Only with Strawberry Perl (which is why I'll never use it). ActivePerl lets you choose, and has done so since I started using it (5.6).

    I've worked around that by using the short-name alias for the intended directory

    That would require making a link in the root directory at least as recently as WinXP, and I consider that unacceptable.

      I was referring to ActivePerl. If you override the suggested location and restore it to the normal location for programs, lots of things break later. Using the short-name alias instead works most of the time.

        That's not true either. That may be true if you install it into a path with a space in it, but you can definitely use something other than the suggested location safely.

        Using the short-name alias instead works most of the time.

        I'm not going to avoid putting it in the root just to create a link in the root. That would be silly.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-11-01 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (227 votes), past polls