| 1 |
|
| 2 |
Tie::Persistent v1.00 |
| 3 |
===================== |
| 4 |
|
| 5 |
The Persistent package makes working with persistent data real |
| 6 |
easy by using the C<tie> interface. |
| 7 |
|
| 8 |
It works by storing data contained in a variable into a file (not |
| 9 |
unlike a database). The primary advantage is speed, as the whole |
| 10 |
datastructure is kept in memory (which is also a limitation), and, of |
| 11 |
course, that you can use arbitrary data structures inside the variable |
| 12 |
(unlike DB_File). |
| 13 |
|
| 14 |
To install, either use the excellent CPAN module or do the usual |
| 15 |
|
| 16 |
perl Makefile.PL |
| 17 |
make |
| 18 |
make test |
| 19 |
make install |
| 20 |
|
| 21 |
Note that Tie::Persistent uses Data::Dumper and Storable, so |
| 22 |
you should make sure that these are available. As Data::Dumper |
| 23 |
comes with the base perl package and Storable is also on its way |
| 24 |
there, this shouldn't be a problem in the future. Actually |
| 25 |
Storable isn't needed and if it's not there, a warning is issued, |
| 26 |
but the module will work without it. |
| 27 |
|
| 28 |
Changes: |
| 29 |
-------- |
| 30 |
|
| 31 |
* fixed a bug with numbered backupfiles |
| 32 |
|
| 33 |
* Storable is now optional, a warning is issued if '-w' is active. |
| 34 |
|
| 35 |
* removed Sys::Hostname due to portability problems |
| 36 |
|
| 37 |
* added a sync() method and autosyncing (thanks to Benjamin Liberman |
| 38 |
<[email protected]> for that) |
| 39 |
|
| 40 |
* fixed a bug with scalar refs and splice |
| 41 |
|
| 42 |
I'm considering Tie::Persistent quite mature from now on (apart |
| 43 |
from the experimental feature, for which I haven't received any |
| 44 |
feedback). |
| 45 |
|
| 46 |
Please feel free to send feedback and support requests. |
| 47 |
|
| 48 |
Roland Giersig <[email protected]> |