In programming applications for multiple operating systems, sometimes it's useful to know what certain Perl variables would equal on the different operating systems.
Does anybody know of a link to someplace that has the values of all of these, like in a table?
For example... something along the lines of...
So... i.e. having a list of some of the OS-specific special variables, like $^O, and also the environment variables for common things such as user profiles.
For instance, $ENV{HOME} doesn't exist on Windows. On Linux, it'd be something like "/home/user", but on Windows, the only equivalent is $ENV{USERPROFILE}, which is something like "C:/Documents and Settings/user"
Anybody know if there are any reference tables for this kind of thing out there, or do I have to be the first one to make one?
-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog
Does anybody know of a link to someplace that has the values of all of these, like in a table?
For example... something along the lines of...
Code:
Var Windows Linux Unix MacOS
--- ------- ----- ---- -----
$^O MSWin32 linux ??? ???
HomeDir $ENV{USERPROFILE} $ENV{HOME} ??? ???
So... i.e. having a list of some of the OS-specific special variables, like $^O, and also the environment variables for common things such as user profiles.
For instance, $ENV{HOME} doesn't exist on Windows. On Linux, it'd be something like "/home/user", but on Windows, the only equivalent is $ENV{USERPROFILE}, which is something like "C:/Documents and Settings/user"
Anybody know if there are any reference tables for this kind of thing out there, or do I have to be the first one to make one?
-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog