
File::homedir is a module for locating the directories that are "owned" by a user (typicaly your user) and to solve the various issues that arise trying to find them consistently across a wide variety of platforms.
the end result is a single api that can find your resources on any platform, making it relatively trivial to create perl software that works elegantly and correctly no matter where you run it.