Next | Lightweight Databases | 76 |
These all have the same major drawback:
The amount of data is limited
Typically, key size + value size must be less than about 1KB for each key
use Fcntl 'O_RDWR', 'O_CREAT'; use SDBM_File;
tie %h, "SDBM_File", "/tmp/sdbm", O_RDWR|O_CREAT, 0666 or die $!; $h{ouch} = "-" x 1024; print "ok\n";
Nope:
sdbm store returned -1, errno 22, key "ouch" at sdbm_fail line 6.
Next | Copyright © 2003 M. J. Dominus |