1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Source: libfile-pushd-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Damyan Ivanov <dmn@debian.org>,
gregor herrmann <gregoa@debian.org>,
Xavier Guimard <x.guimard@free.fr>
Section: perl
Priority: optional
Build-Depends: debhelper (>= 10)
Build-Depends-Indep: perl
Standards-Version: 4.1.4
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libfile-pushd-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libfile-pushd-perl.git
Homepage: https://metacpan.org/release/File-pushd
Testsuite: autopkgtest-pkg-perl
Package: libfile-pushd-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends}
Description: module for changing directory temporarily for a limited scope
File::pushd does a temporary chdir that is easily and automatically reverted,
similar to pushd in some Unix command shells. It works by creating an object
that caches the original working directory. When the object is destroyed, the
destructor calls chdir to revert to the original working directory. By
storing the object in a lexical variable with a limited scope, this happens
automatically at the end of the scope.
.
This is very handy when working with temporary directories for tasks like
testing; a function is provided to streamline getting a temporary directory
from File::Temp.
|