J
January Weiner
Hello,
I am writing a program which I would like to distribute both for Unix-like
and Windows platforms. In Unix, the program reads a global configuration
from /etc/programnamerc, and from the user configuration file
~/.programnamerc. I don't care about the global configuration, but the
user should be able to save hers or his configuration in Windows, too.
As far as I understand it (maybe I'm wrong?) I cannot be sure about a thing
like $HOME. I could theoretically save the user configuration at the same
place as where the program sits; however, I specifically created the
program in such a way that the single binary is everything that is needed
to run it, so that it can be easily moved around.
I thought that I might use the Win32::TieRegistry module. I have read its
documentation. However, I am quite ignorant about Windows, and I am afraid
that tampering the registry without understanding how exactly it works
might break things. Are you aware of any tutorial / faq / explanation how
to do such a basic thing as store a couple of user preferences using perl
and win32::TieRegistry?
cheers,
January
--
I am writing a program which I would like to distribute both for Unix-like
and Windows platforms. In Unix, the program reads a global configuration
from /etc/programnamerc, and from the user configuration file
~/.programnamerc. I don't care about the global configuration, but the
user should be able to save hers or his configuration in Windows, too.
As far as I understand it (maybe I'm wrong?) I cannot be sure about a thing
like $HOME. I could theoretically save the user configuration at the same
place as where the program sits; however, I specifically created the
program in such a way that the single binary is everything that is needed
to run it, so that it can be easily moved around.
I thought that I might use the Win32::TieRegistry module. I have read its
documentation. However, I am quite ignorant about Windows, and I am afraid
that tampering the registry without understanding how exactly it works
might break things. Are you aware of any tutorial / faq / explanation how
to do such a basic thing as store a couple of user preferences using perl
and win32::TieRegistry?
cheers,
January
--