Yes, but like I said, there is no common variables in both OSes. None of those variables exist in Linux.
This is the reason, I've asked the question.
Are there some variables or standard modules, that can determain standard system dirs, depending on which os the perl program is being launched.