|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: File::XDG on varying platformsby stevieb (Canon) |
| on May 27, 2025 at 08:52 UTC ( [id://11165135]=note: print w/replies, xml ) | Need Help?? |
|
I'm confused. You ask what looks better, but all I see are directory paths. Why not just use File::HomeDir to get the user's home directory regardless of OS, and create your directory structure there?
Forget about checking for OS. Just get the home directory of the user regardless of Operating System, create your own sub directory, and dump your content there. ...unless I'm missing something obvious here...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||