SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Acme-CPANModules-TemporaryChdir rpm build for : OpenSuSE. For other distributions click perl-Acme-CPANModules-TemporaryChdir.

Name : perl-Acme-CPANModules-TemporaryChdir
Version : 0.001 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp155.1.1 Date : 2023-12-16 06:27:37
Group : Unspecified Source RPM : perl-Acme-CPANModules-TemporaryChdir-0.001-lp155.1.1.src.rpm
Size : 0.03 MB
Packager : https://www_suse_com/
Summary : List of modules to change directory temporarily
Description :
Changing directory can be tricky if you are doing it in a transaction or
inside a routine where you need to restore the previous working directory
whether your main action succeeds or not. Forgetting doing it and it will
cause unexpected behavior for the user calling your code.

Restoring previous directory can be as simple as:

use Cwd qw(getcwd);

my $prevcwd = getcwd();
eval {

};

chdir $prevcwd or die \"Can\'t chdir back to \'$prevcwd\': $!\";

but it can get tedious. Some modules can help. These modules employ one of
several mechanisms provided by Perl:

1) Tied scalar, where reading from the scalar retrieves the current working
directory and writing to it changes the working directory. The user can set
the magic variable locally and have Perl restore the old value. Modules
that use this technique include: File::chdir.

2) An object, where its constructor records the current working directory
and its DESTROY restores the previously recorded working directory. The
user can create a lexically scoped object that can change directory but
restores the previous working directory when the object goes out of scope.
Modules that use this technique include: File::pushd and Dir::TempChdir.

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

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Acme-CPANModules-TemporaryChdir-0.001-lp155.1.1.noarch.rpm
     

Provides :
perl(Acme::CPANModules::TemporaryChdir)
perl-Acme-CPANModules-TemporaryChdir

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Acme
/usr/lib/perl5/vendor_perl/5.26.1/Acme/CPANModules
/usr/lib/perl5/vendor_perl/5.26.1/Acme/CPANModules/TemporaryChdir.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Acme-CPANModules-TemporaryChdir
/usr/share/doc/packages/perl-Acme-CPANModules-TemporaryChdir/Changes
/usr/share/doc/packages/perl-Acme-CPANModules-TemporaryChdir/README
/usr/share/licenses/perl-Acme-CPANModules-TemporaryChdir
/usr/share/licenses/perl-Acme-CPANModules-TemporaryChdir/LICENSE
/usr/share/man/man3/Acme::CPANModules::TemporaryChdir.3pm.gz

 
ICM