Click here to get back home

Module naming question: Tie::StorableDir

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Module naming question: Tie::StorableDir bd 01-17-2005
Posted by bd on January 17, 2005, 3:17 pm
Please log in for more thread options
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have written a module to tie a hash to a directory of Storable.pm files.
Would Tie::StorableDir be considered an okay name, or would something else be
better?

Perldoc is as follows:
NAME
Tie::StorableDir - Perl extension for tying directories with Storable
files

SYNOPSIS
use Tie::StorableDir;

tie %hash, ’Tie::StorableDir’, dirname => ’foo/’;
$hash = 42;

DESCRIPTION
Tie::StorableDir is a module which ties hashes to a backing directory
containing Storable.pm files. Any basic perl data type can be stored.
Values retrieved from the hash are tied so changes will be written back
either when all references to values under a key are removed, or the
main hash is untied.

ON-DISK FORMAT
Each value in the hash is stored in a file under the directory passed
as ’dirname’ to tie, with a filename derived from the key as follows:

* Prepend ’k’
* Replace characters outside the set [a-zA-Z0-9. -] with _(hex code)

The format of the files themselves is that of a reference to the scalar
value, serialized by Storable::store.

SEE ALSO
"Storable", "perltie"

BUGS
This module will most likely break under taint mode.

AUTHOR

COPYRIGHT AND LICENSE
Copyright (C) 2005 by Bryan Donlan

This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself, either Perl version 5.8.5 or, at
your option, any later version of Perl 5 you may have available.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFB7A9O+hz2VlChukwRAmzyAJ4tQa4E4nJANu6P79y1p8TwVHYenQCeKt+R
DxNM693nmgP//s/xY0N4yBA=
=V3tG
-----END PGP SIGNATURE-----


Similar ThreadsPosted
Module naming help April 27, 2006, 10:29 am
Module naming conundrum March 9, 2006, 9:25 pm
Request for naming help (templating module) September 8, 2005, 11:34 pm
Module naming: Boolean::Verbose March 11, 2006, 7:07 am
Request for naming assistance for new plotting module November 18, 2004, 5:31 pm
help with module naming: filehandle-tie for size-limited/rotating logfile March 18, 2007, 5:44 am
thoughts on modules naming March 23, 2006, 6:46 am
Naming modules from the Internet Archive April 14, 2006, 10:24 pm
Naming consultation request (proposed Geo::ReadGRIB) April 25, 2006, 2:35 pm
Proposal Database::Initialize::Postgresql (naming okay?) March 17, 2007, 11:12 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap