Name : perl-YAML-MLDBM
| |
Version : 0.10
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 34.2
| Date : 2015-06-08 18:20:41
|
Group : Development/Libraries/Perl
| Source RPM : perl-YAML-MLDBM-0.10-34.2.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Use tied hash db-s with Python and Ruby
|
Description :
This module is similar to MLDBM except that it stores data internally as YAML, instead of Data::Dumper or Storable. By doing this, you can create tied hash DBM databases that can be used seamlessly in Python or Ruby applications. That\'s because those languages also have YAML and DBM modules. As other languages get YAML support, you should be able to use YAML::MLDBM with them as well.
This module is a wrapper around MLDBM, but you open a DBM file using the new() method, instead of using a tie. new() will return a reference to a tied hash.
You can also use YAML as a serialization method for MLDBM itself:
use MLDBM qw(SDBM_File YAML); use Fcntl;
tie %h, \'MLDBM\', \'./my_dbm_file\', O_CREAT|O_RDWR, 0640 or die $!;
$h{\'AATTINC\'} = \\AATTINC; $h{\'%ENV\'} = \\%ENV;
use Data::Dumper; print Dumper \\%h;
This has the same affect, but is more verbose. It does offer you more control if you want it though.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-Y/openSUSE_Tumbleweed/noarch |