in reply to File::HomeDir methods my_dist_data and my_dist_config do nothing on Win32

Hello Intrepid,

I read in the docs:

> Returns the directory path as a string, undef if the current user does not have a data directory, or dies on error.

I get the same result as swl but I suspect both are running portable edition of strawberry so we dont get For example, on Unix you get ~/.foo and on Win32 you get ~/Local Settings/Application Data/.foo as the docs says.

perl -MFile::HomeDir -E"say File::HomeDir->my_data" C:\EX_D\ulisseDUE\perl5.26.64bit\data

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: File::HomeDir methods my_dist_data and my_dist_config do nothing on Win32
by Intrepid (Curate) on Apr 08, 2021 at 19:22 UTC
    Thanks Discipulus and swl. I am not running the portable edition of StrawberryPerl. I have not modified $IMPLEMENTED_BY (swl). Well, I guess I'll keep poking at it (looking at the code).
    Examine what is said, not who speaks.
    Love the truth but pardon error.
    Silence betokens consent.
    In the absence of evidence, opinion is indistinguishable from prejudice.