Name : perl-Tie-TextDir
| |
Version : 0.06
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.31
| Date : 2021-09-03 08:27:10
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-TextDir-0.06-6.31.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Interface to directory of files
|
Description :
The Tie::TextDir module is a TIEHASH interface which lets you tie a Perl hash to a directory on the filesystem. Each entry in the hash represents a file in the directory.
To use it, tie a hash to a directory:
tie %hash, \"/some_directory\", \'rw\'; # Open in read/write mode
If you pass \'rw\' as the third parameter, you\'ll be in read/write mode, and any changes you make to the hash will create, modify, or delete files in the given directory. If you pass \'ro\' (or nothing) as the third parameter, you\'ll be in read-only mode, and any changes you make to the hash won\'t have any effect in the given directory.
The \'rw\' and \'ro\' modes are actually just shorthand for \'O_RDWR|O_CREAT\' and \'O_RDONLY\', respectively, as defined by the \'Fcntl\' module. You may pass \'Fcntl\' bitmasks instead of their stringy names if you like that better. The \'O_RDWR\' flag means that you may create or delete files in the directory, and the \'O_CREAT\' flag means that if the directory itself doesn\'t exist \'Tie::TextDir\' will create it (or die trying).
An optional fourth parameter specifies the permissions setting that should be used when creating the tied directory. It _doesn\'t_ have any effect at this point on the permissions of the files inside the directory, though. If the directory already exists, the permissions setting will have no effect. The default permissions setting is \'0775\'.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |