http://qs321.pair.com?node_id=905998


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.

Replies are listed 'Best First'.
Re^2: Darwin and File::HomeDir
by ikegami (Patriarch) 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.