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