File-pushd

From Free Software Directory
 
Jump to: navigation, search


[edit]

File-pushd

https://metacpan.org/release/File-pushd
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.





Licensing

License

Verified by

Verified on

Notes

License

Other

Verified by

Debian: gregor herrmann <gregoa@debian.org>

Verified on

4 July 2014

Notes

License: apache-2.0




Leaders and contributors

Contact(s)Role
David A Golden contact


Resources and communication

AudienceResource typeURI
Perl (Ref)https://metacpan.org/release/File-pushd
Debian (Ref) (R)https://tracker.debian.org/pkg/libfile-pushd-perl


Software prerequisites




Entry








"contact" is not in the list (Maintainer, Contributor, Developer, Sponsor, Unknown) of allowed values for the "Role" property.


"Debian (Ref) (R)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.


"Perl (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.






Date 2015-07-17
Source Debian
Source link http://packages.debian.org/sid/libfile-pushd-perl

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.