SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-File-CounterFile rpm build for : openSUSE Tumbleweed. For other distributions click perl-File-CounterFile.

Name : perl-File-CounterFile
Version : 1.04 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 8.66 Date : 2024-08-05 17:31:32
Group : Development/Libraries/Perl Source RPM : perl-File-CounterFile-1.04-8.66.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Persistent counter class
Description :
This module implements a persistent counter class. Each counter is
represented by a separate file in the file system. File locking is applied,
so multiple processes can attempt to access a counter simultaneously
without risk of counter destruction.

You give the file name as the first parameter to the object constructor
(\'new\'). The file is created if it does not exist.

If the file name does not start with \"/\" or \".\", then it is interpreted as
a file relative to \'$File::CounterFile::DEFAULT_DIR\'. The default value for
this variable is initialized from the environment variable \'TMPDIR\', or
_/usr/tmp_ if no environment variable is defined. You may want to assign a
different value to this variable before creating counters.

If you pass a second parameter to the constructor, it sets the initial
value for a new counter. This parameter only takes effect when the file is
created (i.e. it does not exist before the call).

When you call the \'inc()\' method, you increment the counter value by one.
When you call \'dec()\', the counter value is decremented. In both cases the
new value is returned. The \'dec()\' method only works for numerical counters
(digits only).

You can peek at the value of the counter (without incrementing it) by using
the \'value()\' method.

The counter can be locked and unlocked with the \'lock()\' and \'unlock()\'
methods. Incrementing and value retrieval are faster when the counter is
locked, because we do not have to update the counter file all the time. You
can query whether the counter is locked with the \'locked()\' method.

There is also an operator overloading interface to the File::CounterFile
object. This means that you can use the \'++\' operator for incrementing and
the \'--\' operator for decrementing the counter, and you can interpolate
counters directly into strings.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-File-CounterFile-1.04-8.66.noarch.rpm
     

Provides :
perl(File::CounterFile)
perl-File-CounterFile

Requires :
perl(:MODULE_COMPAT_5.40.0)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/File
/usr/lib/perl5/vendor_perl/5.40.0/File/CounterFile.pm
/usr/share/doc/packages/perl-File-CounterFile
/usr/share/doc/packages/perl-File-CounterFile/Changes
/usr/share/doc/packages/perl-File-CounterFile/README
/usr/share/man/man3/File::CounterFile.3pm.gz

 
ICM