-
-
11 Sep 2013 16:23:14 UTC
- Distribution: MLDBM-Serializer-JSON
- Module version: 0.002
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (567 / 0 / 0)
- Kwalitee
Bus factor: 1- 100.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (4.14KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- JSON::Any
- MLDBM
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MLDBM::Serializer::JSON - DBM serializer uses JSON for language interoperability
SYNOPSIS
# using MLDBM hash interface use MLDBM qw(DB_File JSON); # use Storable for serializing my %db; my $dbm = tie %db, 'MLDBM' [ ... other MLDBM args ... ] or die $! $db{foo} = 'bar'; $db{more} = 42; while( my ($k,$v) = each %db) { print "$k = $v\n"; } # or using DBD::DBM ... use DBI; my $dbh = DBI->connect( "dbi:DBM:", undef, undef, { dbm_type = "DB_File", dbm_mldbm = "JSON", }); ...
DESCRIPTION
MLDBM::Serializer::JSON provides an extension to MLDBM to enable storing the additional columns as JSON instead of Data::Dumper or FreezeThaw.
JSON is very widely used - from Perl over Ruby to Python and surely JavaScript and so on.
SUBROUTINES/METHODS
serialize
serialize a given array into a json string
deserialize
deserialize a json string into an array for MLDBM
AUTHOR
Jens Rehsack,
<rehsack at cpan.org>
BUGS
Please report any bugs or feature requests to
bug-mldbm-serializer-json at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MLDBM-Serializer-JSON. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORT
You can find documentation for this module with the perldoc command.
perldoc MLDBM::Serializer::JSON
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MLDBM-Serializer-JSON
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright 2010 Jens Rehsack.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install MLDBM::Serializer::JSON, copy and paste the appropriate command in to your terminal.
cpanm MLDBM::Serializer::JSON
perl -MCPAN -e shell install MLDBM::Serializer::JSON
For more information on module installation, please visit the detailed CPAN module installation guide.