Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: standard library to return system paths

by BrowserUk (Patriarch)
on Jun 07, 2016 at 06:57 UTC ( [id://1165035]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1165035]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found