Eric Roode on 16 Nov 2011 10:17:33 -0800
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [Philadelphia-pm] Persistent data directory
- From: Eric Roode <firstname.lastname@example.org>
- To: email@example.com
- Subject: Re: [Philadelphia-pm] Persistent data directory
- Date: Wed, 16 Nov 2011 13:17:24 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=rNEFN/mL2PUSpTtf7B11vKD/xj9K1EvTWSsgE5FJ0hM=; b=EJG3EXtB5vBqUrCMN+Ki6CP0r6toCxDhuM9Ve1eE+I3OSe5xSyHl+wVu0TJQlm3tS4 Ll6Ust52sRETdcu8BzJsAmJbRTQrNGA7gxg7g0d37dj6IsfUqg+5of2Q5v2EzeCqgV7U 1ONgAHgYHXeP4atu1JNd0tDt3SLaS/lcAkmjY=
- List-archive: <http://mail.pm.org/pipermail/philadelphia-pm>
- Sender: firstname.lastname@example.org
On Wed, Nov 16, 2011 at 1:11 PM, Chris Nehren <email@example.com>
On Nov 16, 2011, at 12:58, Mark Gardner wrote:
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.
> 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.
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.
Philadelphia-pm mailing list