in reply to Re: Cross platform location for SQLite databases?
in thread Cross platform location for SQLite databases?

Thanks, shmem but using these technologies requires authentication on it's own. Most of what I need to store is just simple metadata that requires no security. Therefore, Kerberos and LDAP are a little overkill for my needs.

What I am truly looking for is a module that identifies the OS, and then chooses an appropriate location for storing metadata. Depending on context and privileges, this can be in the user's profile directory, or if running as a privileged user, in "/var" or "C:\Windows\something" (sorry not a windows geek).

Perhaps this doesn't exist, and I should just write my own :-)

  • Comment on Re^2: Cross platform location for SQLite databases?

Replies are listed 'Best First'.
Re^3: Cross platform location for SQLite databases?
by shmem (Chancellor) on May 26, 2009 at 17:37 UTC
    Therefore, Kerberos and LDAP are a little overkill for my needs.

    Why overkill? Bot are centralized stores with a well defined protocol. Querying the platform, selecting the storage location depending on the result and implementing the do-abouts for each looks more like overkill. And, "requires no security" ? That's almost always wrong ;-)

Re^3: Cross platform location for SQLite databases?
by ww (Archbishop) on May 26, 2009 at 23:25 UTC

    ...module that identifies the OS...

    No need for a module: $^O

    see perldoc perlvar.