Thank you for the reply!
I'm actually familiar with inodes and the way they work (from my OS course back at the uni). Not sure but feels like an overkill (since I just want to keep those paths in a simple structure). Also, is there some model that does something similar maybe? Tried to look in cpan and didn't find anything interesting, but I might missed it.