[Philadelphia-pm] Persistent data directory
Nate Smith
nate at perlhack.com
Wed Nov 16 10:34:07 PST 2011
How much data are you talking about? If it's reasonably small, and you are
definitely only working with Win32, you could always consider keeping it in the
registry.
-Nate
On Wed, Nov 16, 2011 at 01:17:24PM -0500, Eric Roode wrote:
>
>
> On Wed, Nov 16, 2011 at 1:11 PM, Chris Nehren <c.nehren/phl at shadowcat.co.uk>
> wrote:
>
> On Nov 16, 2011, at 12:58, Mark Gardner wrote:
>
>
> [...]
>
> >
> > As for *where* to store things (the original question), one system-wide
> place is the distribution's share directory, enabled by modules like
> File::ShareDir and File::Share. Other options for portably finding places
> to write include File::HomeDir and File::ConfigDir.
>
> Eek, sorry I misunderstood. I'll concur with Mark's suggestion of
> File::ShareDir or File::HomeDir--though as you're on Windows these options
> may not put things where you otherwise expect.
>
>
> S'okay, Chris. :-)
>
> Mark: Aha! Very interesting; I hadn't known about those modules. I wonder if
> there are any issues about *writing* files in those directories. Probably not
> (although I'll be sure to lock filehandles properly)... but I should be
> prepared in case the directory is read-only.
>
> Thank you!
> -- Eric
>
> _______________________________________________
> Philadelphia-pm mailing list
> Philadelphia-pm at pm.org
> http://mail.pm.org/mailman/listinfo/philadelphia-pm
More information about the Philadelphia-pm
mailing list