Name : perl-Tie-Persistent
| |
Version : 1.00
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.6.1
| Date : 2024-07-03 19:16:51
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-Persistent-1.00-lp156.6.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Persistent data structures via tie made easy
|
Description :
The Tie::Persistent package makes working with persistent data real easy by using the \'tie\' interface.
It works by storing data contained in a variable into a file (not unlike a database). The primary advantage is speed, as the whole datastructure is kept in memory (which is also a limitation), and, of course, that you can use arbitrary data structures inside the variable (unlike DB_File).
Note that it is most useful if the data structure fits into memory. For larger data structures I recommend MLDBM.
If you want to make an arbitrary object persistent, just store its ref in a scalar tied to \'Tie::Persistent\'.
*Beware*: not every data structure or object can be made persistent. For example, it may not contain GLOB or CODE refs, as these are not really dumpable (yet?).
Also, it works only for variables, you cannot use it for file handles.
[A persistent file handle? Hmmm... Hmmm! I\'ve got an idea: I could start a server and send the file descriptor to it via ioctl(FD_SEND) or sendmsg. Later, I could retrieve it back, so it\'s persistent as long as the server process keeps running. But the whole file handle may contain more than just the file descriptor. There may be an output routine associated with it that I\'d somehow have to dump. Now let\'s see, there was some way to get the bytecode converted back into perl code... < wanders off into the darkness mumbling> ... ]
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |