in reply to standard library to return system paths

On windows, these environment variables identify most of the information you're looking for:

ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\someuser\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files COMPUTERNAME=MACHINENAME HOMEDRIVE=C: HOMEPATH=\Users\someuser LOCALAPPDATA=C:\Users\someuser\AppData\Local LOGONSERVER=\\MACHINENAME ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) USERDOMAIN=MACHINENAME USERNAME=someuser USERPROFILE=C:\Users\someuser

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.

Replies are listed 'Best First'.
Re^2: standard library to return system paths
by igoryonya (Pilgrim) on Jun 07, 2016 at 07:36 UTC
    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.